Change login button to InkWell widget
@@ -75,16 +75,28 @@ class _LoginPageState extends State<LoginPage> {
offset: '${this._roomID}'.length)),
)))),
SizedBox(width: 260.0, height: 48.0),
- SizedBox(
+ InkWell(
+ child: Container(
width: 220.0,
height: 48.0,
- child: OutlineButton(
+ decoration: BoxDecoration(
+ border: Border.all(
+ color:string2Color('#e13b3f'),
+ width: 1,
+ ),
+ ),
+ child: Center(
child: Text(
'Join',
- style: TextStyle(fontSize: 16.0, color: Colors.black),
+ style: TextStyle(
+ fontSize: 16.0,
+ color: Colors.black,
+ fontWeight:FontWeight.bold,
),
- borderSide: BorderSide(color: string2Color('#e13b3f')),
- onPressed: () {
+ ),
+ ),
+ ),
+ onTap: () {
if (_roomID != null) {
handleJoin();
prefs.setString('room', _roomID);
@@ -109,7 +121,7 @@ class _LoginPageState extends State<LoginPage> {
},
);
},
- ))
+ ),
]));
}
