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
2022-03-09 10:34:02 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3dde31b39a8afd4fac8ea710d08bc183c033256a
3dde31b3
1 parent
f02c51fb
fix: remove deprecated constructors
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
62 deletions
example/pubspec.lock
example/pubspec.yaml
lib/src/bottom_sheet.dart
pubspec.lock
pubspec.yaml
example/pubspec.lock
View file @
3dde31b
...
...
@@ -7,42 +7,42 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.
5.0-nullsafety.3
"
version: "2.
8.2
"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.
1.0-nullsafety.5
"
version: "1.
2.0
"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.
2.0-nullsafety.3
"
version: "1.
3.1
"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0
-nullsafety.5
"
version: "1.15.0"
cupertino_icons:
dependency: "direct main"
description:
...
...
@@ -56,7 +56,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0
-nullsafety.3
"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -67,20 +67,39 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.3"
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.
3.0-nullsafety.6
"
version: "1.
7.0
"
modal_bottom_sheet:
dependency: "direct main"
description:
...
...
@@ -94,14 +113,14 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.
0-nullsafety.3
"
version: "1.8.
1
"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "
1.1.0-nullsafety.1
"
version: "
2.1.2
"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -113,91 +132,105 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.
0-nullsafety.4
"
version: "1.8.
2
"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0
-nullsafety.6
"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0
-nullsafety.3
"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.6"
typed_data:
version: "0.4.9"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.20"
url_launcher_android:
dependency: transitive
description:
name:
typed_data
name:
url_launcher_android
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.5"
url_launcher:
dependency: "direct main"
version: "6.0.15"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher
name: url_launcher
_ios
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.
0-nullsafety.1
"
version: "6.0.
15
"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.dartlang.org"
source: hosted
version: "
0.1.0-nullsafety.1
"
version: "
3.0.0
"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.dartlang.org"
source: hosted
version: "
0.1.0-nullsafety.1
"
version: "
3.0.0
"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0-nullsafety.1"
version: "2.0.5"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.9"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.dartlang.org"
source: hosted
version: "
0.1.0-nullsafety.1
"
version: "
3.0.0
"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.
0-nullsafety.5
"
version: "2.1.
2
"
sdks:
dart: ">=2.12.0-29.10.beta <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"
dart: ">=2.16.0-100.0.dev <3.0.0"
flutter: ">=2.10.0"
...
...
example/pubspec.yaml
View file @
3dde31b
...
...
@@ -19,7 +19,7 @@ environment:
dependencies
:
flutter
:
sdk
:
flutter
url_launcher
:
6.0.0-nullsafety.1
url_launcher
:
^6.0.20
modal_bottom_sheet
:
path
:
'
../'
...
...
lib/src/bottom_sheet.dart
View file @
3dde31b
...
...
@@ -298,9 +298,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
// Otherwise the calculate the velocity with a VelocityTracker
if
(
_velocityTracker
==
null
)
{
//final pointerKind = defaultPointerDeviceKind(context);
// ignore: deprecated_member_use
_velocityTracker
=
VelocityTracker
();
final
pointerKind
=
defaultPointerDeviceKind
(
context
);
_velocityTracker
=
VelocityTracker
.
withKind
(
pointerKind
);
_startTime
=
DateTime
.
now
();
}
...
...
pubspec.lock
View file @
3dde31b
...
...
@@ -7,49 +7,49 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.
5.0-nullsafety.3
"
version: "2.
8.2
"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.
1.0-nullsafety.5
"
version: "1.
2.0
"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.
2.0-nullsafety.3
"
version: "1.
3.1
"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0
-nullsafety.5
"
version: "1.15.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0
-nullsafety.3
"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -66,21 +66,28 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.3"
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.
3.0-nullsafety.6
"
version: "1.
7.0
"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.
0-nullsafety.3
"
version: "1.8.
1
"
pedantic:
dependency: "direct dev"
description:
...
...
@@ -99,56 +106,49 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.
0-nullsafety.4
"
version: "1.8.
2
"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0
-nullsafety.6
"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0
-nullsafety.3
"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.6"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.5"
version: "0.4.9"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.
0-nullsafety.5
"
version: "2.1.
2
"
sdks:
dart: ">=2.12.0-29.10.beta <3.0.0"
flutter: ">=1.12.0 <2.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.0.0"
...
...
pubspec.yaml
View file @
3dde31b
...
...
@@ -5,7 +5,7 @@ homepage: 'https://github.com/jamesblasco/modal_bottom_sheet'
environment
:
sdk
:
"
>=2.12.0-29.10.beta
<3.0.0"
flutter
:
"
>=
1.12.0
<
2.0.0"
flutter
:
"
>=2.0.0"
dependencies
:
flutter
:
...
...
Please
register
or
login
to post a comment