diff --git a/lib/country_list_pick.dart b/lib/country_list_pick.dart index 5c1fe1b..88aa536 100644 --- a/lib/country_list_pick.dart +++ b/lib/country_list_pick.dart @@ -82,7 +82,8 @@ class _CountryListPickState extends State { selectedItem, appBar: widget.appBar ?? AppBar( - backgroundColor: Theme.of(context).appBarTheme.backgroundColor, + backgroundColor: + Theme.of(context).appBarTheme.backgroundColor, title: Text("Select Country"), ), theme: theme, @@ -100,8 +101,8 @@ class _CountryListPickState extends State { @override Widget build(BuildContext context) { - return TextButton( - onPressed: () { + return GestureDetector( + onTap: () { _awaitFromSelectScreen(context, widget.appBar, widget.theme); }, child: widget.pickerBuilder != null