Remove center widget

This commit is contained in:
Oystein Kristoffer Tveit 2020-07-16 14:08:02 +02:00
parent 0bd4dad772
commit 9633693c9b
1 changed files with 31 additions and 33 deletions

View File

@ -30,8 +30,7 @@ class KanjiView extends StatelessWidget {
class KanjiViewBar extends StatelessWidget { class KanjiViewBar extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Center( return Container(
child: Container(
child: Row( child: Row(
children: [ children: [
IconButton( IconButton(
@ -40,7 +39,7 @@ class KanjiViewBar extends StatelessWidget {
.add(ReturnToInitialState()), .add(ReturnToInitialState()),
), ),
Expanded( Expanded(
child: Padding( child: Container(
padding: EdgeInsets.symmetric(vertical: 10.0), padding: EdgeInsets.symmetric(vertical: 10.0),
child: TextField( child: TextField(
onSubmitted: (text) => onSubmitted: (text) =>
@ -66,7 +65,6 @@ class KanjiViewBar extends StatelessWidget {
), ),
], ],
), ),
),
); );
} }
} }