upgrade-to-flutter-3 #1
|
@ -21,9 +21,7 @@ class LoginScreen extends StatelessWidget {
|
|||
Expanded(
|
||||
child: Container(
|
||||
child: Center(
|
||||
child: FlatButton(
|
||||
splashColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
child: TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, Routes.register);
|
||||
},
|
||||
|
@ -110,9 +108,7 @@ class LoginScreen extends StatelessWidget {
|
|||
// activeTrackColor: Colors.white,
|
||||
// activeColor: Colors.white,
|
||||
),
|
||||
FlatButton(
|
||||
splashColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(
|
||||
context, Routes.splashScreen);
|
||||
|
@ -126,17 +122,19 @@ class LoginScreen extends StatelessWidget {
|
|||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: RaisedButton(
|
||||
color: Color(0xFF495057),
|
||||
textColor: Colors.white,
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, Routes.dashboard);
|
||||
},
|
||||
child: Text('Log In'),
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
padding: EdgeInsets.all(18.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
),
|
||||
backgroundColor:Color(0xFF495057),
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, Routes.dashboard);
|
||||
},
|
||||
child: Text('Log In'),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
|
@ -89,9 +89,16 @@ class RegisterFirstScreen extends StatelessWidget {
|
|||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: RaisedButton(
|
||||
color: Color(0xFF495057),
|
||||
textColor: Colors.white,
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Color(0xFF495057),
|
||||
foregroundColor: Colors.white,
|
||||
padding: EdgeInsets.all(18.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
),
|
||||
),
|
||||
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
@ -103,10 +110,6 @@ class RegisterFirstScreen extends StatelessWidget {
|
|||
);
|
||||
},
|
||||
child: Text('Continue'),
|
||||
padding: EdgeInsets.all(18.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
|
@ -56,18 +56,20 @@ class RegisterSecondScreen extends StatelessWidget {
|
|||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: RaisedButton(
|
||||
color: Color(0xFF495057),
|
||||
textColor: Colors.white,
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Color(0xFF495057),
|
||||
foregroundColor: Colors.white,
|
||||
padding: EdgeInsets.all(18.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, Routes.dashboard);
|
||||
print('Next Step');
|
||||
},
|
||||
child: Text('Register'),
|
||||
padding: EdgeInsets.all(18.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(18.0),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue