upgrade flutter 3.7

This commit is contained in:
poka 2023-02-01 22:25:26 +01:00
parent 9a4c1d602b
commit 0634335854
6 changed files with 514 additions and 305 deletions

View File

@ -166,8 +166,8 @@ class Gecko extends StatelessWidget {
), ),
primaryColor: const Color(0xffFFD58D), primaryColor: const Color(0xffFFD58D),
textTheme: const TextTheme( textTheme: const TextTheme(
bodyText1: TextStyle(fontSize: 16), bodyLarge: TextStyle(fontSize: 16),
bodyText2: TextStyle(fontSize: 18), bodyMedium: TextStyle(fontSize: 18),
).apply( ).apply(
bodyColor: const Color(0xFF000000), bodyColor: const Color(0xFF000000),
), ),

View File

@ -1,4 +1,4 @@
// ignore_for_file: use_build_context_synchronously // ignore_for_file: use_build_context_synchronously, body_might_complete_normally_catch_error
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:fast_base58/fast_base58.dart'; import 'package:fast_base58/fast_base58.dart';

View File

@ -1,3 +1,5 @@
// ignore_for_file: use_build_context_synchronously
import 'package:bubble/bubble.dart'; import 'package:bubble/bubble.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';

View File

@ -24,8 +24,6 @@ import 'package:gecko/widgets/commons/smooth_transition.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:flutter_svg/flutter_svg.dart'; import 'package:flutter_svg/flutter_svg.dart';
import 'package:truncate/truncate.dart'; import 'package:truncate/truncate.dart';
import 'package:tutorial_coach_mark/tutorial_coach_mark.dart';
class WalletsHome extends StatefulWidget { class WalletsHome extends StatefulWidget {
const WalletsHome({Key? key}) : super(key: key); const WalletsHome({Key? key}) : super(key: key);

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
# [[ -z $1 ]] && echo "Please choose a version." && exit 1
fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }') fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
@ -8,7 +7,9 @@ withPush=$1
APPNAME="gecko" APPNAME="gecko"
VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion) VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion) BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
ori_app="app.apk" v7_app="app-armeabi-v7a-release.apk"
v8_app="app-arm64-v8a-release.apk"
x86_64_app="app-x86_64-release.apk"
echo "Nom du build final: ${APPNAME}-${VERSION}+${BUILD}.apk" echo "Nom du build final: ${APPNAME}-${VERSION}+${BUILD}.apk"
[[ $withPush == "withPush" ]] && echo "Publish after build" [[ $withPush == "withPush" ]] && echo "Publish after build"
@ -25,18 +26,13 @@ else
# flutter build apk --release --build-name $VERSION --build-number $BUILD # flutter build apk --release --build-name $VERSION --build-number $BUILD
fi fi
if [[ -d $HOME/kDrive/Gecko-APK ]]; then DL="/tmp"
DL="$HOME/kDrive/Gecko-APK" appPathV7="$DL/${APPNAME}-${VERSION}+${BUILD}-v7a.apk"
elif [[ -d $HOME/Téléchargements ]]; then appPathV8="$DL/${APPNAME}-${VERSION}+${BUILD}-v8a.apk"
DL="$HOME/Téléchargements" appPathV8="$DL/${APPNAME}-${VERSION}+${BUILD}-x86_64.apk"
elif [[ -d $HOME/Downloads ]]; then mv build/app/outputs/flutter-apk/$v7_app "$appPathV7" || exit 1
DL="$HOME/Downloads" mv build/app/outputs/flutter-apk/$v8_app "$appPathV8" || exit 1
else mv build/app/outputs/flutter-apk/$x86_64_app "$appPathV8" || exit 1
DL="/tmp"
fi
appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk"
mv build/app/outputs/flutter-apk/$ori_app "$appPath" || exit 1
[[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION+$BUILD [[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION+$BUILD