-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aedca2
commit fba9576
Showing
20 changed files
with
175 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/with_go_router/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
examples/with_go_router/lib/app/ui/pages/color/color_controller.dart
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
examples/with_go_router/lib/app/ui/pages/color/color_notifier.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:flutter_meedu/notifiers.dart'; | ||
import 'package:flutter_meedu/providers.dart'; | ||
|
||
final colorProvider = StateNotifierArgumentsProvider<ColorNotifier, int, int>( | ||
(ref) => ColorNotifier(ref.arguments), | ||
); | ||
|
||
class ColorNotifier extends StateNotifier<int> { | ||
ColorNotifier(super.initialState); | ||
} |
13 changes: 7 additions & 6 deletions
13
examples/with_go_router/lib/app/ui/pages/color/color_page.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
examples/with_go_router/lib/app/ui/pages/counter/controller/counter_controller.dart
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
examples/with_go_router/lib/app/ui/pages/counter/controller/counter_notifier.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:flutter_meedu/notifiers.dart'; | ||
import 'package:flutter_meedu/providers.dart'; | ||
|
||
final counterProvider = StateNotifierProvider<CounterNotifier, int>( | ||
(_) => CounterNotifier(0), | ||
); | ||
|
||
class CounterNotifier extends StateNotifier<int> { | ||
CounterNotifier(super.initialState); | ||
|
||
void increment() { | ||
state++; | ||
} | ||
|
||
@override | ||
void dispose() { | ||
print("counter disposed"); | ||
super.dispose(); | ||
} | ||
} |
6 changes: 0 additions & 6 deletions
6
examples/with_go_router/lib/app/ui/pages/counter/controller/counter_provider.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
examples/with_go_router/lib/app/ui/pages/nested/controller/nested_controller.dart
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
examples/with_go_router/lib/app/ui/pages/nested/controller/nested_provider.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.