Skip to content

Commit

Permalink
-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHCJP committed Oct 23, 2024
1 parent a9a9302 commit 851c018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: flutter test

- name: Analyze project source
run: flutter analyze
run: flutter analyze --fatal-infos --fatal-warnings lib/ test/

# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
Expand Down
5 changes: 4 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import 'package:example/src/screens/exception_multi_screen.dart';
import 'package:example/src/screens/login_screen.dart';
import 'package:example/src/screens/multi_screen.dart';
import 'package:fform/fform.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class MyFFormObserver extends FFormObserver {
@override
void check(FForm form) {
print('Form has been checked and is ${form.isValid ? 'valid' : 'invalid'}');
if (kDebugMode) {
print('Form has been checked and is ${form.isValid ? 'valid' : 'invalid'}');
}
}
}

Expand Down

0 comments on commit 851c018

Please sign in to comment.