Skip to content

Commit

Permalink
fix login button corner radius
Browse files Browse the repository at this point in the history
  • Loading branch information
putraxor committed Dec 25, 2018
1 parent 70a37cf commit 67ef6e0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 292 deletions.
21 changes: 9 additions & 12 deletions lib/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,16 @@ class _LoginPageState extends State<LoginPage> {

final loginButton = Padding(
padding: EdgeInsets.symmetric(vertical: 16.0),
child: Material(
borderRadius: BorderRadius.circular(30.0),
shadowColor: Colors.lightBlueAccent.shade100,
elevation: 5.0,
child: MaterialButton(
minWidth: 200.0,
height: 42.0,
onPressed: () {
Navigator.of(context).pushNamed(HomePage.tag);
},
color: Colors.lightBlueAccent,
child: Text('Log In', style: TextStyle(color: Colors.white)),
child: RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24),
),
onPressed: () {
Navigator.of(context).pushNamed(HomePage.tag);
},
padding: EdgeInsets.all(12),
color: Colors.lightBlueAccent,
child: Text('Log In', style: TextStyle(color: Colors.white)),
),
);

Expand Down
Loading

0 comments on commit 67ef6e0

Please sign in to comment.