mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-21 21:47:29 +01:00
Remove center widget
This commit is contained in:
parent
0bd4dad772
commit
9633693c9b
@ -30,42 +30,40 @@ 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(
|
icon: Icon(Icons.arrow_back),
|
||||||
icon: Icon(Icons.arrow_back),
|
onPressed: () => BlocProvider.of<KanjiBloc>(context)
|
||||||
onPressed: () => BlocProvider.of<KanjiBloc>(context)
|
.add(ReturnToInitialState()),
|
||||||
.add(ReturnToInitialState()),
|
),
|
||||||
),
|
Expanded(
|
||||||
Expanded(
|
child: Container(
|
||||||
child: Padding(
|
padding: EdgeInsets.symmetric(vertical: 10.0),
|
||||||
padding: EdgeInsets.symmetric(vertical: 10.0),
|
child: TextField(
|
||||||
child: TextField(
|
onSubmitted: (text) =>
|
||||||
onSubmitted: (text) =>
|
BlocProvider.of<KanjiBloc>(context).add(GetKanji(text)),
|
||||||
BlocProvider.of<KanjiBloc>(context).add(GetKanji(text)),
|
decoration: new InputDecoration(
|
||||||
decoration: new InputDecoration(
|
prefixIcon: Icon(Icons.search),
|
||||||
prefixIcon: Icon(Icons.search),
|
hintText: 'Search for kanji',
|
||||||
hintText: 'Search for kanji',
|
fillColor: Colors.white,
|
||||||
fillColor: Colors.white,
|
filled: true,
|
||||||
filled: true,
|
border: OutlineInputBorder(
|
||||||
border: OutlineInputBorder(
|
borderRadius: BorderRadius.circular(100.0)),
|
||||||
borderRadius: BorderRadius.circular(100.0)),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
),
|
||||||
icon: Icon(Icons.star_border),
|
IconButton(
|
||||||
onPressed: null,
|
icon: Icon(Icons.star_border),
|
||||||
),
|
onPressed: null,
|
||||||
IconButton(
|
),
|
||||||
icon: Icon(Icons.add),
|
IconButton(
|
||||||
onPressed: null,
|
icon: Icon(Icons.add),
|
||||||
),
|
onPressed: null,
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user