Skip to content

Commit

Permalink
v1.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Jan 16, 2025
1 parent 15c1c16 commit cd684a9
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 46 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.1.13] - 2024-01-16

* Update Laravel dashboard stub

## [1.1.12] - 2024-01-16

* Dependency updates
Expand Down
92 changes: 47 additions & 45 deletions lib/stubs/laravel/laravel_dashboard_stub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,51 +35,53 @@ class _DashboardPageState extends NyState<DashboardPage> {
elevation: 0,
),
body: SafeArea(
child: afterLoad(child: () => Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(topRight: Radius.circular(20), topLeft: Radius.circular(20)),
color: Colors.white
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
Container(
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
padding: EdgeInsets.all(15),
decoration: BoxDecoration(
color: ThemeColor.get(context).background,
borderRadius: BorderRadius.circular(8),
boxShadow: [
BoxShadow(
color: Colors.grey.shade200,
spreadRadius: 0.1,
blurRadius: 20
)
]),
child: Icon(Icons.key),
),
Text("Logged in").headingMedium(),
Divider(),
Text("Auth: \${_user?.email}"),
],
),
Container(
margin: EdgeInsets.only(top: 20),
width: double.infinity,
child: MaterialButton(
child: Text("Logout"), onPressed: () async {
event<LogoutEvent>();
await Auth.logout();
routeToInitial();
},),
)
],
),
),)
child: Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
borderRadius: BorderRadius.only(topRight: Radius.circular(20),
topLeft: Radius.circular(20)),
color: Colors.white
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
Container(
margin: EdgeInsets.symmetric(
horizontal: 16, vertical: 16),
padding: EdgeInsets.all(15),
decoration: BoxDecoration(
color: ThemeColor
.get(context)
.background,
borderRadius: BorderRadius.circular(8),
boxShadow: [
BoxShadow(
color: Colors.grey.shade200,
spreadRadius: 0.1,
blurRadius: 20
)
]),
child: Icon(Icons.key),
),
Text("Logged in").headingMedium(),
Divider(),
Text("Auth: \${_user?.email}"),
],
),
Container(
margin: EdgeInsets.only(top: 20),
width: double.infinity,
child: MaterialButton(
child: Text("Logout"), onPressed: () async {
await event<LogoutEvent>();
},),
)
],
),
)
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: scaffold_ui
description: "Authentication package for Flutter. Scaffold Supabase, Firebase, Laravel, and more."
version: 1.1.12
version: 1.1.13
homepage: https://nylo.dev
repository: https://github.com/nylo-core/scaffold_ui
issue_tracker: https://github.com/nylo-core/scaffold_ui/issues
Expand Down

0 comments on commit cd684a9

Please sign in to comment.