-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 fixed a bug with viewmodels/screens instead of viewmodel/screen
- Loading branch information
1 parent
de33f58
commit cf86e07
Showing
12 changed files
with
87 additions
and
81 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:icapps_generator_example/viewmodel/testing/testing_viewmodel.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:kiwi/kiwi.dart' as kiwi; | ||
import 'package:provider/provider.dart'; | ||
|
||
class TestingScreen extends StatelessWidget implements TestingNavigator { | ||
static const String routeName = 'testing'; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ChangeNotifierProvider<TestingViewModel>( | ||
child: Consumer<TestingViewModel>( | ||
builder: (context, value, child) => Scaffold( | ||
body: Center(), | ||
), | ||
), | ||
builder: (context) => kiwi.Container().resolve()..init(this), | ||
); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...reens/user_detail/user_detail_screen.dart → ...creen/user_detail/user_detail_screen.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
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,11 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class TestingViewModel with ChangeNotifier{ | ||
TestingNavigator _navigator; | ||
|
||
Future<void> init(TestingNavigator navigator) async { | ||
_navigator = navigator; | ||
} | ||
} | ||
|
||
abstract class TestingNavigator {} |
File renamed without changes.
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