Skip to content

Commit 2028c34

Browse files
committed
Continuing the argument name refactoring from Stacked 3.0
1 parent 924735f commit 2028c34

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StackedHookViewExample extends StackedView<HomeViewModel> {
1212
const StackedHookViewExample({Key key}) : super(key: key);
1313
1414
@override
15-
Widget builder(BuildContext context, HomeViewModel model, Widget? child) {
15+
Widget builder(BuildContext context, HomeViewModel viewModel, Widget? child) {
1616
return Scaffold(
1717
body: Center(child: _HookForm()),
1818
);

example/lib/ui/views/with_stacked_hook/with_stacked_hook_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class WithStackedHookView extends StackedView<WithStackedHookViewModel> {
3333

3434
class _HookForm extends StackedHookView<WithStackedHookViewModel> {
3535
@override
36-
Widget builder(BuildContext context, WithStackedHookViewModel model) {
36+
Widget builder(BuildContext context, WithStackedHookViewModel viewModel) {
3737
final title = useTextEditingController();
3838
return Column(
3939
mainAxisSize: MainAxisSize.min,

lib/src/_stacked_hook_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class StackedHookView<T> extends HookWidget {
1414
Provider.of<T>(context, listen: reactive),
1515
);
1616

17-
Widget builder(BuildContext context, T model);
17+
Widget builder(BuildContext context, T viewModel);
1818
}
1919

2020
@Deprecated(

0 commit comments

Comments
 (0)