upgrade-to-flutter-3 #1

Merged
motia merged 9 commits from upgrade-to-flutter-2 into master 2022-09-11 16:22:21 +00:00
3 changed files with 30 additions and 27 deletions
Showing only changes of commit a6a5660fc4 - Show all commits

View file

@ -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,
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'),
padding: EdgeInsets.all(18.0),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
),
),
)
],

View file

@ -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),
),
),
)
],

View file

@ -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),
),
),
)
],