Skip to content

Commit

Permalink
Upgrade flutter to 3.10.2 (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-markl authored May 30, 2023
1 parent a4b5db5 commit e4e5468
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 197 deletions.
2 changes: 1 addition & 1 deletion frontend/.fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.7.6",
"flutterSdkVersion": "3.10.2",
"flavors": {}
}
4 changes: 2 additions & 2 deletions frontend/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
include: package:lints/recommended.yaml

analyzer:
strong-mode:
implicit-casts: false
exclude:
- build/**
- lib/graphql/graphql_api*.dart
Expand Down Expand Up @@ -152,6 +150,8 @@ analyzer:
use_test_throws_matchers: error
valid_regexps: error
void_checks: error
language:
strict-casts: true

linter:
rules:
Expand Down
2 changes: 1 addition & 1 deletion frontend/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:graphql_flutter/graphql_flutter.dart';
import 'package:provider/provider.dart';
import 'package:qr_flutter/qr_flutter.dart' as qr show QrImage, QrCode, QrVersions, QrErrorCorrectLevel;
import 'package:qr_flutter/qr_flutter.dart' as qr;

class VerificationCodeView extends StatefulWidget {
final DynamicUserCode userCode;
Expand Down Expand Up @@ -67,7 +67,6 @@ class VerificationCodeViewState extends State<VerificationCodeView> {
data: createDynamicVerificationQrCodeData(userCode, otpCode.code),
errorCorrectLevel: qr.QrErrorCorrectLevel.L,
);
qrCode.make();

return isCardVerificationExpired
? TextButton.icon(
Expand All @@ -86,11 +85,15 @@ class VerificationCodeViewState extends State<VerificationCodeView> {
children: [
Padding(
padding: EdgeInsets.all(padding),
child: qr.QrImage.withQr(
child: qr.QrImageView.withQr(
qr: qrCode,
version: qr.QrVersions.auto,
foregroundColor: Theme.of(context).textTheme.bodyMedium?.color,
gapless: false,
dataModuleStyle: qr.QrDataModuleStyle(
dataModuleShape: qr.QrDataModuleShape.square,
color: Theme.of(context).textTheme.bodyMedium?.color),
eyeStyle: qr.QrEyeStyle(
eyeShape: qr.QrEyeShape.square, color: Theme.of(context).textTheme.bodyMedium?.color),
),
),
Positioned.fill(
Expand Down
Loading

0 comments on commit e4e5468

Please sign in to comment.