Skip to content

Commit cd684a9

Browse files
committed
v1.1.13
1 parent 15c1c16 commit cd684a9

File tree

3 files changed

+52
-46
lines changed

3 files changed

+52
-46
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.1.13] - 2024-01-16
2+
3+
* Update Laravel dashboard stub
4+
15
## [1.1.12] - 2024-01-16
26

37
* Dependency updates

lib/stubs/laravel/laravel_dashboard_stub.dart

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,51 +35,53 @@ class _DashboardPageState extends NyState<DashboardPage> {
3535
elevation: 0,
3636
),
3737
body: SafeArea(
38-
child: afterLoad(child: () => Container(
39-
padding: EdgeInsets.all(16),
40-
decoration: BoxDecoration(
41-
borderRadius: BorderRadius.only(topRight: Radius.circular(20), topLeft: Radius.circular(20)),
42-
color: Colors.white
43-
),
44-
child: Column(
45-
crossAxisAlignment: CrossAxisAlignment.center,
46-
mainAxisAlignment: MainAxisAlignment.center,
47-
children: [
48-
Column(
49-
children: [
50-
Container(
51-
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
52-
padding: EdgeInsets.all(15),
53-
decoration: BoxDecoration(
54-
color: ThemeColor.get(context).background,
55-
borderRadius: BorderRadius.circular(8),
56-
boxShadow: [
57-
BoxShadow(
58-
color: Colors.grey.shade200,
59-
spreadRadius: 0.1,
60-
blurRadius: 20
61-
)
62-
]),
63-
child: Icon(Icons.key),
64-
),
65-
Text("Logged in").headingMedium(),
66-
Divider(),
67-
Text("Auth: \${_user?.email}"),
68-
],
69-
),
70-
Container(
71-
margin: EdgeInsets.only(top: 20),
72-
width: double.infinity,
73-
child: MaterialButton(
74-
child: Text("Logout"), onPressed: () async {
75-
event<LogoutEvent>();
76-
await Auth.logout();
77-
routeToInitial();
78-
},),
79-
)
80-
],
81-
),
82-
),)
38+
child: Container(
39+
padding: EdgeInsets.all(16),
40+
decoration: BoxDecoration(
41+
borderRadius: BorderRadius.only(topRight: Radius.circular(20),
42+
topLeft: Radius.circular(20)),
43+
color: Colors.white
44+
),
45+
child: Column(
46+
crossAxisAlignment: CrossAxisAlignment.center,
47+
mainAxisAlignment: MainAxisAlignment.center,
48+
children: [
49+
Column(
50+
children: [
51+
Container(
52+
margin: EdgeInsets.symmetric(
53+
horizontal: 16, vertical: 16),
54+
padding: EdgeInsets.all(15),
55+
decoration: BoxDecoration(
56+
color: ThemeColor
57+
.get(context)
58+
.background,
59+
borderRadius: BorderRadius.circular(8),
60+
boxShadow: [
61+
BoxShadow(
62+
color: Colors.grey.shade200,
63+
spreadRadius: 0.1,
64+
blurRadius: 20
65+
)
66+
]),
67+
child: Icon(Icons.key),
68+
),
69+
Text("Logged in").headingMedium(),
70+
Divider(),
71+
Text("Auth: \${_user?.email}"),
72+
],
73+
),
74+
Container(
75+
margin: EdgeInsets.only(top: 20),
76+
width: double.infinity,
77+
child: MaterialButton(
78+
child: Text("Logout"), onPressed: () async {
79+
await event<LogoutEvent>();
80+
},),
81+
)
82+
],
83+
),
84+
)
8385
),
8486
);
8587
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: scaffold_ui
22
description: "Authentication package for Flutter. Scaffold Supabase, Firebase, Laravel, and more."
3-
version: 1.1.12
3+
version: 1.1.13
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/scaffold_ui
66
issue_tracker: https://github.com/nylo-core/scaffold_ui/issues

0 commit comments

Comments
 (0)