Skip to content

Commit

Permalink
added ripple effect on control button
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlphamerc committed Mar 5, 2020
1 parent 1334f3e commit 1dfedeb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@

* 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
* Added header hide option
* 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.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class _MyHomePageState extends State<MyHomePage> {
var list = await FilterList.showFilterList(
context,
allTextList: countList,
height: 450,
height: 480,
borderRadius: 20,
headlineText: "Select Count",
searchFieldHintText: "Search Here",
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.3"
version: "0.0.4"
flutter:
dependency: "direct main"
description: flutter
Expand Down
22 changes: 13 additions & 9 deletions lib/src/filter_list_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,19 @@ class _FilterListWidgetState extends State<FilterListWidget> {
),
child: Row(
children: <Widget>[
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(
Expand All @@ -283,15 +285,17 @@ class _FilterListWidgetState extends State<FilterListWidget> {
),
),
),
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(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 1dfedeb

Please sign in to comment.