From 1dfedeb42c07af65a62d7160b3e4bcecf864c3e0 Mon Sep 17 00:00:00 2001 From: Sonu Sharma Date: Thu, 5 Mar 2020 21:37:56 +0530 Subject: [PATCH] added ripple effect on control button --- CHANGELOG.md | 6 +++++- example/lib/main.dart | 2 +- example/pubspec.lock | 2 +- lib/src/filter_list_widget.dart | 22 +++++++++++++--------- pubspec.yaml | 2 +- 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 281519c..661a569 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ * Added filter pop-up theme customization -## [0.0.2] - 02 Mar 2020 +## [0.0.3] - 02 Mar 2020 * Added pop-up height * Added pop-up width @@ -15,3 +15,7 @@ * Added search field hide option * Added cross icon hide option +## [0.0.4] - 05 Mar 2020 + +* Added pop-up Corner Radius property +* Added rippple effect on control button. \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 8804936..7f1d374 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -55,7 +55,7 @@ class _MyHomePageState extends State { var list = await FilterList.showFilterList( context, allTextList: countList, - height: 450, + height: 480, borderRadius: 20, headlineText: "Select Count", searchFieldHintText: "Search Here", diff --git a/example/pubspec.lock b/example/pubspec.lock index 292a6f2..3a86e32 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -70,7 +70,7 @@ packages: path: ".." relative: true source: path - version: "0.0.3" + version: "0.0.4" flutter: dependency: "direct main" description: flutter diff --git a/lib/src/filter_list_widget.dart b/lib/src/filter_list_widget.dart index d9061af..51c32f7 100644 --- a/lib/src/filter_list_widget.dart +++ b/lib/src/filter_list_widget.dart @@ -264,17 +264,19 @@ class _FilterListWidgetState extends State { ), child: Row( children: [ - InkWell( - onTap: () { + FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(25))), + onPressed: () { setState( () { _selectedTextList = List.from(_allTextList); }, ); }, - child: Container( - padding: - EdgeInsets.symmetric(horizontal: 20, vertical: 5), + child: Container( + height: double.infinity, + alignment: Alignment.center, child: Text( 'All', style: Theme.of(context).textTheme.headline.copyWith( @@ -283,15 +285,17 @@ class _FilterListWidgetState extends State { ), ), ), - InkWell( - onTap: () { + FlatButton( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(25))), + onPressed: () { setState(() { _selectedTextList.clear(); }); }, child: Container( - padding: - EdgeInsets.symmetric(horizontal: 20, vertical: 5), + height: double.infinity, + alignment: Alignment.center, child: Text( 'Reset', style: Theme.of(context).textTheme.headline.copyWith( diff --git a/pubspec.yaml b/pubspec.yaml index 803762f..460a930 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: filter_list description: filterList is a flutter plugin created to filter data from list. -version: 0.0.3 +version: 0.0.4 homepage: https://github.com/TheAlphamerc/flutter_plugin_filter_list environment: