Skip to content

Commit cb07e32

Browse files
pi1814unatasha8
authored andcommitted
feat: flutter quickstart (#2241)
* flutter quickstart update * updating docs to handle the .env misnaming in the pubspec and the port mismatch * resolving default import issue with mdx for .env ref * doc change for flutter quickstart * fix: format * update: pubspec.lock * update: pubspec * update: pubspec to higher version * update: packages * debug: test * debug: test * upgrade: flutter to latest version| * remove: web renderer option for flutter
1 parent c623f51 commit cb07e32

File tree

95 files changed

+3446
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+3446
-343
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@ jobs:
3232
tools: composer
3333
- uses: subosito/flutter-action@v2.10.0
3434
with:
35-
flutter-version: "3.10.6"
35+
flutter-version: "3.35.7"
3636
channel: "stable"
37+
cache: false
3738
- uses: actions/setup-python@v5
3839
with:
3940
python-version: "3.13"
4041
- run: npm ci
42+
- name: Verify Flutter and Dart versions
43+
run: |
44+
flutter --version
45+
dart --version
4146
- name: Install Playwright
4247
run: npx playwright install --with-deps
4348
- name: Run Playwright tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ install: code-examples/protect-page-login/nextjs-12/package-lock.json code-examp
2828
build-examples:
2929
cd code-examples/protect-page-login/nextjs-12 && npm run build
3030
cd code-examples/protect-page-login/nextjs && npm run build
31-
cd code-examples/protect-page-login/flutter_web_redirect && flutter build web --web-renderer html
31+
cd code-examples/protect-page-login/flutter_web_redirect && flutter build web
3232
cd code-examples/protect-page-login/vue && VUE_APP_API_URL=http://localhost:4007 VUE_APP_ORY_URL=http://localhost:3006 npm run build
3333
cd code-examples/protect-page-login/react && npm run build
3434
cd code-examples/protect-page-login/dotnet && docker build --build-arg APP_DIR=01-basic -t dotnet-01-basic .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ORY_BASE_URL=http://localhost:3000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ORY_BASE_URL=http://localhost:3000

code-examples/protect-page-login/flutter_web_redirect/.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
1114

1215
# IntelliJ related
1316
*.iml
@@ -26,13 +29,10 @@
2629
.dart_tool/
2730
.flutter-plugins
2831
.flutter-plugins-dependencies
29-
.packages
3032
.pub-cache/
3133
.pub/
3234
/build/
3335

34-
# Web related
35-
3636
# Symbolication related
3737
app.*.symbols
3838

code-examples/protect-page-login/flutter_web_redirect/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
8-
channel: stable
7+
revision: "6fba2447e95c451518584c35e25f5433f14d888c"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
17+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
18+
- platform: android
19+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
20+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
21+
- platform: ios
22+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
23+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
24+
- platform: linux
25+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
26+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
27+
- platform: macos
28+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
29+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
30+
- platform: web
31+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
32+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
33+
- platform: windows
34+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
35+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

code-examples/protect-page-login/flutter_web_redirect/README.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ samples, guidance on mobile development, and a full API reference.
1818
## Run your Flutter Web App
1919

2020
```shell-session
21-
flutter run -d web-server --web-port 4005
21+
flutter run -d web-server --web-port 4000
2222
```
2323

2424
```mdx-code-block
@@ -27,14 +27,14 @@ import SdkEnvVar from '@site/src/components/SdkEnvVar'
2727
<SdkEnvVar />
2828
```
2929

30-
Start the Ory Cli tunnel on [http://localhost:3005](http://localhost:3005) and
31-
set the proxied application to [http://localhost:4005](http://localhost:4005).
30+
Start the Ory Cli tunnel on [http://localhost:3000](http://localhost:3000) and
31+
set the proxied application to [http://localhost:4000](http://localhost:4000).
3232

3333
```shell-session
34-
ory tunnel --port 3005 http://localhost:4005
34+
ory tunnel --port 3000 http://localhost:4000
3535
```
3636

37-
Open the browser on [http://localhost:4005](http://localhost:4005) you should
37+
Open the browser on [http://localhost:4000](http://localhost:4000) you should
3838
now see the Ory managed Login page.
3939

4040
## Release Build
@@ -50,7 +50,7 @@ We then need an HTTP server to serve the files, we will use
5050
[dhttpd](https://pub.dev/packages/dhttpd).
5151

5252
```shell-session
53-
dhttpd --host localhost --port 4005 --path build/web
53+
dhttpd --host localhost --port 4000 --path build/web
5454
```
5555

5656
See here for more information on

code-examples/protect-page-login/flutter_web_redirect/analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ linter:
1313
# The lint rules applied to this project can be customized in the
1414
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
1515
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
16+
# and their documentation is published at https://dart.dev/lints.
1817
#
1918
# Instead of disabling a lint rule for the entire project in the
2019
# section below, it can also be suppressed for a single line of code

code-examples/protect-page-login/flutter_web_redirect/android/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
# See https://flutter.dev/to/reference-keystore
1112
key.properties
1213
**/*.keystore
1314
**/*.jks

code-examples/protect-page-login/flutter_web_redirect/android/app/build.gradle

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)