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-07-10 10:07:58 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d4e8d3ce0eb3c34387f7239c29a0aaf59d29a3f
2d4e8d3c
1 parent
568581b2
v0.2.0+1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
CHANGELOG.md
lib/src/bottom_sheet.dart
pubspec.yaml
CHANGELOG.md
View file @
2d4e8d3
...
...
@@ -19,3 +19,6 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions
-
Added support for scroll-to-top by tapping the status bar on iOS devices.
-
Use
`curveAnimation`
to define a custom curve animation for the modal transition
-
Bug fixes releated to horizontal scroll, clamping physics and othes.
## [0.2.0+1] - ScrollView bug fix
-
Fix bug when scrollview was not used
\ No newline at end of file
...
...
lib/src/bottom_sheet.dart
View file @
2d4e8d3
...
...
@@ -14,7 +14,6 @@ import 'package:modal_bottom_sheet/src/utils/primary_scroll_status_bar.dart';
import
'package:modal_bottom_sheet/src/utils/bottom_sheet_suspended_curve.dart'
;
const
Curve
_decelerateEasing
=
Cubic
(
0.0
,
0.0
,
0.2
,
1.0
);
const
Curve
_modalBottomSheetCurve
=
_decelerateEasing
;
const
Duration
_bottomSheetDuration
=
Duration
(
milliseconds:
400
);
...
...
@@ -265,7 +264,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
if
(
scrollPosition
.
axis
==
Axis
.
horizontal
)
return
;
final
isScrollReversed
=
scrollPosition
.
axisDirection
==
AxisDirection
.
down
;
final
offset
=
isScrollReversed
?
scrollPosition
.
pixels
...
...
pubspec.yaml
View file @
2d4e8d3
name
:
modal_bottom_sheet
description
:
'
Create
awesome
and
powerful
modal
bottom
sheets.
Material,
Cupertino
iOS
13
or
create
your
own
style'
version
:
0.2.0
version
:
0.2.0
+1
homepage
:
'
https://github.com/jamesblasco/modal_bottom_sheet'
environment
:
...
...
Please
register
or
login
to post a comment