add exit button
This commit is contained in:
@@ -39,12 +39,26 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => SimpleDialog(
|
Widget build(BuildContext context) => SimpleDialog(
|
||||||
|
titlePadding: const EdgeInsets.all(0),
|
||||||
title: Column(
|
title: Column(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
TextField(
|
IconButton(
|
||||||
style: widget.searchStyle,
|
padding: const EdgeInsets.all(0),
|
||||||
decoration: widget.searchDecoration,
|
iconSize: 20,
|
||||||
onChanged: _filterElements,
|
icon: Icon(
|
||||||
|
Icons.close,
|
||||||
|
),
|
||||||
|
onPressed: () => Navigator.pop(context),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||||
|
child: TextField(
|
||||||
|
style: widget.searchStyle,
|
||||||
|
decoration: widget.searchDecoration,
|
||||||
|
onChanged: _filterElements,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user