Skip to content

Commit

Permalink
feat: Add viewname on view generation (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0mad-d3v authored Oct 26, 2023
1 parent 9afaad1 commit bee1f0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class {{viewName}} extends StackedView<{{viewModelName}}> {
backgroundColor: Theme.of(context).colorScheme.background,
body: Container(
padding: const EdgeInsets.only(left: 25.0, right: 25.0),
child: const Center(child: Text("{{viewName}}")),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class {{viewName}}Desktop extends ViewModelWidget<{{viewModelName}}> {
return const Scaffold(
body: Center(
child: Text(
'Hello, DESKTOP UI!',
'Hello, DESKTOP UI - {{viewName}}!',
style: TextStyle(
fontSize: 35,
fontWeight: FontWeight.w900,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class {{viewName}}Mobile extends ViewModelWidget<{{viewModelName}}> {
return const Scaffold(
body: Center(
child: Text(
'Hello, MOBILE UI!',
'Hello, MOBILE UI - {{viewName}}!',
style: TextStyle(
fontSize: 35,
fontWeight: FontWeight.w900,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class {{viewName}}Tablet extends ViewModelWidget<{{viewModelName}}> {
return const Scaffold(
body: Center(
child: Text(
'Hello, TABLET UI!',
'Hello, TABLET UI - {{viewName}}!',
style: TextStyle(
fontSize: 35,
fontWeight: FontWeight.w900,
Expand Down

0 comments on commit bee1f0e

Please sign in to comment.