From 5324f0ccc42db208da378c417809bcea1fa7ff5c Mon Sep 17 00:00:00 2001 From: Nabeel Ahmad Date: Tue, 14 Jun 2022 14:35:59 +0500 Subject: [PATCH] change button to gesturedetector --- lib/country_list_pick.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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