Skip to content

Commit

Permalink
Update goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Feb 4, 2024
1 parent aad4730 commit 35265d3
Show file tree
Hide file tree
Showing 16 changed files with 555 additions and 222 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Message: `Convert to functional provider`
=== diff (starting at line 7)
Priority: 100
Diff for file `test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.dart:7`:
```
/// Some comment
@riverpod
- class Example extends _$Example {
Expand All @@ -9,9 +11,12 @@ Message: `Convert to functional provider`
+ int example(ExampleRef ref) => 0;

/// Some comment
===
```
---
Message: `Convert to functional provider`
=== diff (starting at line 7)
Priority: 100
Diff for file `test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.dart:7`:
```
/// Some comment
@riverpod
- class Example extends _$Example {
Expand All @@ -21,9 +26,12 @@ Message: `Convert to functional provider`
+ int example(ExampleRef ref) => 0;

/// Some comment
===
```
---
Message: `Convert to functional provider`
=== diff (starting at line 7)
Priority: 100
Diff for file `test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.dart:7`:
```
/// Some comment
@riverpod
- class Example extends _$Example {
Expand All @@ -33,9 +41,12 @@ Message: `Convert to functional provider`
+ int example(ExampleRef ref) => 0;

/// Some comment
===
```
---
Message: `Convert to functional provider`
=== diff (starting at line 14)
Priority: 100
Diff for file `test/assists/convert_class_based_provider_to_functional/convert_class_based_provider_to_functional.dart:14`:
```
/// Some comment
@riverpod
- class ExampleFamily extends _$ExampleFamily {
Expand All @@ -48,4 +59,5 @@ Message: `Convert to functional provider`
+ // Hello world
+ return 0;
+ }
===
```
---
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Message: `Convert to class-based provider`
=== diff (starting at line 7)
Priority: 100
Diff for file `test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.dart:7`:
```
/// Some comment
@riverpod
- int example(ExampleRef ref) => 0;
Expand All @@ -9,9 +11,12 @@ Message: `Convert to class-based provider`
+ }

/// Some comment
===
```
---
Message: `Convert to class-based provider`
=== diff (starting at line 11)
Priority: 100
Diff for file `test/assists/convert_functional_provider_to_class_based/convert_functional_provider_to_class_based.dart:11`:
```
/// Some comment
@riverpod
- int exampleFamily(ExampleFamilyRef ref, {required int a, String b = '42'}) {
Expand All @@ -24,4 +29,5 @@ Message: `Convert to class-based provider`
+ return 0;
+ }
}
===
```
---
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 5)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:5`:
```
import 'package:flutter_hooks/flutter_hooks.dart';

- class Stateless extends StatelessWidget {
Expand All @@ -16,9 +18,12 @@ import 'package:flutter_hooks/flutter_hooks.dart';
+ class _StatelessState extends ConsumerState<Stateless> {
@override
Widget build(BuildContext context) {
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 14)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:14`:
```
}

- class StatelessWithComma extends StatelessWidget {
Expand All @@ -35,9 +40,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ class _StatelessWithCommaState extends ConsumerState<StatelessWithComma> {
@override
Widget build(
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 25)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:25`:
```
}

- class Hook extends HookWidget {
Expand All @@ -54,9 +62,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ class _HookState extends ConsumerState<Hook> {
@override
Widget build(BuildContext context) {
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 34)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:34`:
```
}

- class HookConsumer extends HookConsumerWidget {
Expand All @@ -80,9 +91,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ BuildContext context) {
return const Placeholder();
}
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 46)
Priority: 27
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:46`:
```
}

- class Stateful extends StatefulWidget {
Expand All @@ -103,9 +117,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ class _StatefulState extends ConsumerState<Stateful> {
/// Hello world
@override
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 62)
Priority: 27
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:62`:
```
}

- class ExplicitCreateState extends StatefulWidget {
Expand All @@ -126,9 +143,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ class ExplicitCreateStateState extends ConsumerState<ExplicitCreateState> {
@override
Widget build(
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 78)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:78`:
```
}

- class HookStateful extends StatefulHookWidget {
Expand All @@ -149,18 +169,24 @@ Message: `Convert to ConsumerStatefulWidget`
+ class HookStatefulState extends ConsumerState<HookStateful> {
@override
Widget build(BuildContext context) {
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 106)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:106`:
```
}

- class HookConsumerStateful extends StatefulHookConsumerWidget {
+ class HookConsumerStateful extends ConsumerStatefulWidget {
const HookConsumerStateful({super.key});

===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 121)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:121`:
```
}

- class Consumer extends ConsumerWidget {
Expand All @@ -184,9 +210,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ BuildContext context) {
return const Placeholder();
}
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 133)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:133`:
```
}

- class StatelessWithField extends StatelessWidget {
Expand Down Expand Up @@ -226,9 +255,12 @@ Message: `Convert to ConsumerStatefulWidget`
+ Text('${StatelessWithField.staticField}'),
],
);
===
```
---
Message: `Convert to ConsumerStatefulWidget`
=== diff (starting at line 153)
Priority: 31
Diff for file `test/assists/convert_to_widget/convert_to_widget.dart:153`:
```
}

- class HookConsumerWithField extends HookConsumerWidget {
Expand Down Expand Up @@ -272,4 +304,5 @@ Message: `Convert to ConsumerStatefulWidget`
+ Text('${HookConsumerWithField.staticField}'),
],
);
===
```
---
Loading

0 comments on commit 35265d3

Please sign in to comment.