Skip to content

Commit 3b8e379

Browse files
committed
Fix History
1 parent 6a3a4ce commit 3b8e379

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
## [0.2.7] - 2019-06-14.
1+
## [0.2.8] - 2019-06-14.
2+
3+
* fix history.
4+
5+
## [0.2.8] - 2019-06-14.
26

37
* Cleaning code.
48
* Update Readme.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# flutter_inner_drawer
2-
[![pub package](https://img.shields.io/badge/pub-0.2.7-orange.svg)](https://pub.dartlang.org/packages/flutter_inner_drawer)
2+
[![pub package](https://img.shields.io/badge/pub-0.2.8-orange.svg)](https://pub.dartlang.org/packages/flutter_inner_drawer)
33
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter#drawers)
44
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/dnag88)
55

@@ -10,7 +10,7 @@ Inner Drawer is an easy way to create an internal side section (left/right) wher
1010
Add this to your package's pubspec.yaml file:
1111
```dart
1212
dependencies:
13-
flutter_inner_drawer: "^0.2.7"
13+
flutter_inner_drawer: "^0.2.8"
1414
```
1515
## Demo
1616
<div align="center">

lib/inner_drawer.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ class InnerDrawerState extends State<InnerDrawer> with SingleTickerProviderState
161161
case AnimationStatus.reverse:
162162
break;
163163
case AnimationStatus.forward:
164-
_historyEntry?.remove();
165-
_historyEntry = null;
166164
break;
167165
case AnimationStatus.dismissed:
168166
if (_previouslyOpened != opened && widget.innerDrawerCallback != null){
@@ -176,7 +174,8 @@ class InnerDrawerState extends State<InnerDrawer> with SingleTickerProviderState
176174
_previouslyOpened = opened;
177175
widget.innerDrawerCallback(opened);
178176
}
179-
break;
177+
_historyEntry?.remove();
178+
_historyEntry = null;
180179
}
181180
}
182181

@@ -194,7 +193,7 @@ class InnerDrawerState extends State<InnerDrawer> with SingleTickerProviderState
194193
void _handleDragDown(DragDownDetails details)
195194
{
196195
_controller.stop();
197-
_ensureHistoryEntry();
196+
//_ensureHistoryEntry();
198197
}
199198

200199

@@ -402,7 +401,7 @@ class InnerDrawerState extends State<InnerDrawer> with SingleTickerProviderState
402401
Widget build(BuildContext context)
403402
{
404403
//assert(debugCheckHasMaterialLocalizations(context));
405-
404+
406405
// initialize the correct width
407406
if(_initWidth == 400 || MediaQuery.of(context).orientation != _orientation){
408407
_updateWidth();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_inner_drawer
22
description: Inner Drawer is an easy way to create an internal side section (left/right) where you can insert a list menu or other.
3-
version: 0.2.7
3+
version: 0.2.8
44
author: Antonino Di Natale <[email protected]>
55
homepage: https://github.com/Dn-a/flutter_inner_drawer
66

0 commit comments

Comments
 (0)