From 0e54ffeaecd3140a55f005ccae666ce29815fbff Mon Sep 17 00:00:00 2001 From: dan63047 Date: Wed, 27 Dec 2023 01:55:51 +0300 Subject: [PATCH] commit 100: redirect from ch.tetr.io --- .github/workflows/main.yml | 4 ++-- android/app/src/main/AndroidManifest.xml | 2 +- lib/main.dart | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3e175a..3c622c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - uses: subosito/flutter-action@v1 with: channel: 'stable' - flutter-version: '3.10.5' + flutter-version: '3.16.5' - name: Install project dependencies run: flutter pub get - name: Build artifacts @@ -50,7 +50,7 @@ jobs: java-version: '12.x' - uses: subosito/flutter-action@v1 with: - flutter-version: '3.10.5' + flutter-version: '3.16.5' - run: flutter pub get # - run: flutter test // lmao. Tests? Who needs it? - run: flutter build apk --split-per-abi diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index bc8a9e7..309d1a5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -28,7 +28,7 @@ - + diff --git a/lib/main.dart b/lib/main.dart index b0899a9..9c29a23 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -25,6 +25,7 @@ void setAccentColor(Color color){ } final router = GoRouter( + //initialLocation: "/", routes: [ GoRoute( path: "/", @@ -47,6 +48,10 @@ final router = GoRouter( builder: (_, __) => const CustomizationView(), ), ] + ), + GoRoute( + path: "/u/:userId", + builder: (_, __) => MainView(player: __.pathParameters['userId']) ) ], );