Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
modal_bottom_sheet
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jaime Blasco
2020-09-23 09:59:21 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
276909a84c274806fd57879c4ca81d4dbd0b0b3f
276909a8
1 parent
b025b733
Reverse flutter 22 beta change
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
7 deletions
CHANGELOG.md
example/lib/modals/modal_with_navigator.dart
example/pubspec.lock
lib/src/bottom_sheet.dart
pubspec.yaml
CHANGELOG.md
View file @
276909a
## [0.2.1+1-dev] - Fix Flutter 22 breaking change
## [0.2.1+2] - Reverse fix Flutter 22 beta breaking change
-
https://github.com/jamesblasco/modal_bottom_sheet/issues/69
## [0.2.1+1-dev] - Fix Flutter 22 beta breaking change
-
https://github.com/jamesblasco/modal_bottom_sheet/issues/69
## [0.2.0+1] - ScrollView bug fix
...
...
example/lib/modals/modal_with_navigator.dart
View file @
276909a
...
...
@@ -8,6 +8,7 @@ class ModalWithNavigator extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Material
(
child:
Navigator
(
onGenerateRoute:
(
_
)
=>
MaterialPageRoute
(
...
...
@@ -27,15 +28,22 @@ class ModalWithNavigator extends StatelessWidget {
(
index
)
=>
ListTile
(
title:
Text
(
'Item'
),
onTap:
()
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
(
Navigator
.
of
(
context
).
pushAndRemoveUntil
(
MaterialPageRoute
(
builder:
(
context
)
=>
CupertinoPageScaffold
(
navigationBar:
CupertinoNavigationBar
(
middle:
Text
(
'New Page'
),
),
child:
Stack
(
fit:
StackFit
.
expand
,
children:
<
Widget
>[],
))));
children:
<
Widget
>[
MaterialButton
(
onPressed:
()
=>
Navigator
.
of
(
context
).
pop
(),
child:
Text
(
'touch here'
),
)
],
)
)
),
ModalRoute
.
withName
(
'/'
));
},
)),
).
toList
(),
...
...
example/pubspec.lock
View file @
276909a
...
...
@@ -92,7 +92,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.1+
1-dev
"
version: "0.2.1+
2
"
path:
dependency: transitive
description:
...
...
lib/src/bottom_sheet.dart
View file @
276909a
...
...
@@ -300,7 +300,7 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
// Otherwise the calculate the velocity with a VelocityTracker
if
(
_velocityTracker
==
null
)
{
final
pointerKind
=
defaultPointerDeviceKind
(
context
);
_velocityTracker
=
VelocityTracker
(
pointerKind
);
_velocityTracker
=
VelocityTracker
();
_startTime
=
DateTime
.
now
();
}
DragUpdateDetails
dragDetails
;
...
...
pubspec.yaml
View file @
276909a
name
:
modal_bottom_sheet
description
:
'
Create
awesome
and
powerful
modal
bottom
sheets.
Material,
Cupertino
iOS
13
or
create
your
own
style'
version
:
0.2.1+
1-dev
version
:
0.2.1+
2
homepage
:
'
https://github.com/jamesblasco/modal_bottom_sheet'
environment
:
...
...
Please
register
or
login
to post a comment