Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 48 additions & 36 deletions lib/screens/components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ class _ComponentsState extends State<Components> {
),
SizedBox(
width: double.infinity,
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.defaultColor,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.defaultColor, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand All @@ -72,16 +74,18 @@ class _ComponentsState extends State<Components> {
width: double.infinity,
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.primary,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.primary, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand All @@ -94,16 +98,18 @@ class _ComponentsState extends State<Components> {
width: double.infinity,
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.info,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.info, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand All @@ -115,16 +121,18 @@ class _ComponentsState extends State<Components> {
width: double.infinity,
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.success,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.success, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand All @@ -137,16 +145,18 @@ class _ComponentsState extends State<Components> {
width: double.infinity,
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.warning,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.warning, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand All @@ -159,16 +169,18 @@ class _ComponentsState extends State<Components> {
width: double.infinity,
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.error,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.error, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 12, bottom: 12),
Expand Down
14 changes: 8 additions & 6 deletions lib/screens/onboarding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@ class Onboarding extends StatelessWidget {
padding: const EdgeInsets.only(top: 16.0),
child: SizedBox(
width: double.infinity,
child: FlatButton(
textColor: NowUIColors.white,
color: NowUIColors.info,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.info, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 16, bottom: 16),
Expand Down
14 changes: 8 additions & 6 deletions lib/screens/pro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@ class Pro extends StatelessWidget {
padding: const EdgeInsets.only(top: 16.0),
child: SizedBox(
width: double.infinity,
child: FlatButton(
textColor: NowUIColors.white,
color: NowUIColors.info,
onPressed: _launchURL,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.info, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: _launchURL,
child: Padding(
padding: EdgeInsets.only(
left: 16.0,
Expand Down
14 changes: 8 additions & 6 deletions lib/screens/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,18 @@ class Profile extends StatelessWidget {
children: [
Padding(
padding: const EdgeInsets.only(right: 8.0),
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.info,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: NowUIColors.info, // background
onPrimary: NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(32.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 12.0, right: 12.0, top: 10, bottom: 10),
Expand Down
18 changes: 11 additions & 7 deletions lib/screens/register.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,22 @@ class _RegisterState extends State<Register> {
],
),
Center(
child: RaisedButton(
textColor: NowUIColors.white,
color: NowUIColors.primary,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary:
NowUIColors.primary, // background
onPrimary:
NowUIColors.white, // foreground
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(32.0),
),
),
onPressed: () {
// Respond to button press
Navigator.pushReplacementNamed(
context, '/home');
},
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(32.0),
),
child: Padding(
padding: EdgeInsets.only(
left: 32.0,
Expand Down
Loading