flatbutton
This commit is contained in:
parent
1e365dc29d
commit
3934cca572
@ -18,14 +18,26 @@ void main() {
|
||||
class DicePage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
children: <Widget> [
|
||||
Expanded(
|
||||
child: Image.asset('images/dice1.png'),),
|
||||
return Center(
|
||||
child: Row(
|
||||
children: <Widget> [
|
||||
Expanded(
|
||||
|
||||
child: Image.asset('images/dice1.png'),),
|
||||
],
|
||||
child: FlatButton(
|
||||
onPressed: () {
|
||||
print('left button is pressed');
|
||||
},
|
||||
child: Image.asset('images/dice1.png')),
|
||||
),
|
||||
|
||||
Expanded(
|
||||
child: FlatButton(
|
||||
onPressed: () {
|
||||
print('right button is pressed');
|
||||
},
|
||||
child: Image.asset('images/dice1.png')),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user