Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Jan 4, 2025
1 parent 2b03345 commit 1d54b08
Show file tree
Hide file tree
Showing 82 changed files with 32,608 additions and 655 deletions.

Large diffs are not rendered by default.

1,002 changes: 1,002 additions & 0 deletions packages/generator_tests/test/doc/animated_url_list_test.dart

Large diffs are not rendered by default.

688 changes: 688 additions & 0 deletions packages/generator_tests/test/doc/annotateless_output_test.dart

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions packages/generator_tests/test/doc/annotateless_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ class AnnotatelessFormBuilder extends StatefulWidget {
class _AnnotatelessFormBuilderState extends State<AnnotatelessFormBuilder> {
late AnnotatelessForm _formModel;
StreamSubscription<LogRecord>? _logSubscription;
@override
void initState() {
_formModel =
Expand All @@ -188,7 +190,7 @@ class _AnnotatelessFormBuilderState extends State<AnnotatelessFormBuilder> {
widget.initState?.call(context, _formModel);
_logAnnotatelessForm.onRecord.listen((LogRecord e) {
_logSubscription = _logAnnotatelessForm.onRecord.listen((LogRecord e) {
// use `dumpErrorToConsole` for severe messages to ensure that severe
// exceptions are formatted consistently with other Flutter examples and
// avoids printing duplicate exceptions
Expand Down Expand Up @@ -231,6 +233,7 @@ class _AnnotatelessFormBuilderState extends State<AnnotatelessFormBuilder> {
@override
void dispose() {
_formModel.form.dispose();
_logSubscription?.cancel();
super.dispose();
}
Expand All @@ -253,7 +256,7 @@ class _AnnotatelessFormBuilderState extends State<AnnotatelessFormBuilder> {
}
}
final _logAnnotatelessForm = Logger('AnnotatelessForm');
final _logAnnotatelessForm = Logger.detached('AnnotatelessForm');
class AnnotatelessForm implements FormModel<Annotateless, Annotateless> {
AnnotatelessForm(
Expand Down Expand Up @@ -558,6 +561,7 @@ class ReactiveAnnotatelessFormArrayBuilder<
final Widget Function(
BuildContext context,
int i,
FormControl<ReactiveAnnotatelessFormArrayBuilderT> control,
ReactiveAnnotatelessFormArrayBuilderT? item,
AnnotatelessForm formModel) itemBuilder;
Expand All @@ -581,6 +585,8 @@ class ReactiveAnnotatelessFormArrayBuilder<
itemBuilder(
context,
i,
formArray.controls[i]
as FormControl<ReactiveAnnotatelessFormArrayBuilderT>,
item,
formModel,
),
Expand Down
Loading

0 comments on commit 1d54b08

Please sign in to comment.