Skip to content

Commit

Permalink
ci: upgrade to flutter 2.8.0-3.2.pre (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcossevilla authored Nov 25, 2021
1 parent df37b80 commit ec92922
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: subosito/[email protected]
with:
flutter-version: 2.7.0-3.1.pre
flutter-version: 2.8.0-3.2.pre
channel: "beta"

- name: Install Tools
Expand Down
11 changes: 7 additions & 4 deletions examples/form_flow/packages/formz_inputs/lib/src/pin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ class PinFormInput extends FormzInput<String, PinValidationError> {
/// {@endtemplate}
static int get maxLength {
if (_maxLength == null) {
assert(() {
_maxLength = 4;
return true;
}());
assert(
() {
_maxLength = 4;
return true;
}(),
'Pin’s maximum length defaults to 4.',
);
}
return _maxLength ??= 4;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PreferencesForm extends StatefulWidget {
const PreferencesForm({Key? key}) : super(key: key);

@override
_PreferencesFormState createState() => _PreferencesFormState();
State<PreferencesForm> createState() => _PreferencesFormState();
}

class _PreferencesFormState extends State<PreferencesForm> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void main() {
(tester) async {
final preferencesBloc = MockPreferencesBloc();
when(() => preferencesBloc.state).thenReturn(
const PreferencesLoaded(<String, dynamic>{'key': 'value'}));
const PreferencesLoaded(<String, dynamic>{'key': 'value'}),
);

await tester.pumpApp(
const HomeView(),
Expand Down

0 comments on commit ec92922

Please sign in to comment.