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-09-07 11:13:31 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30677ae12ace219a40446c564f15110053637b3d
30677ae1
1 parent
beb4e6c2
fix: format files
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
40 deletions
sheet/example/lib/examples/route/navigation/cupertino_page.dart
sheet/example/lib/examples/route/navigation/page.dart
sheet/example/lib/examples/sheet/fit_resizable_sheet.dart
sheet/example/lib/examples/sheet/sheet_without_momentum.dart
sheet/example/lib/main.dart
sheet/lib/route.dart
sheet/example/lib/examples/route/navigation/cupertino_page.dart
View file @
30677ae
...
...
@@ -80,7 +80,6 @@ class _CupertinoBooksAppState extends State<CupertinoBooksApp> {
}
}
class
BooksListScreen
extends
StatelessWidget
{
const
BooksListScreen
({
required
this
.
books
,
...
...
sheet/example/lib/examples/route/navigation/page.dart
View file @
30677ae
...
...
@@ -80,7 +80,6 @@ class _BooksAppState extends State<BooksApp> {
}
}
class
BooksListScreen
extends
StatelessWidget
{
const
BooksListScreen
({
required
this
.
books
,
...
...
sheet/example/lib/examples/sheet/fit_resizable_sheet.dart
View file @
30677ae
...
...
@@ -34,35 +34,34 @@ class _FitSheetState extends State<FitResizableSheet> {
@override
Widget
build
(
BuildContext
context
)
{
return
Sheet
(
elevation:
4
,
resizable:
true
,
minResizableExtent:
200
,
physics:
const
SnapSheetPhysics
(
stops:
<
double
>[
0
,
200
,
double
.
infinity
],
relative:
false
,
parent:
BouncingSheetPhysics
(),
),
child:
Container
(
height:
500
,
child:
Scaffold
(
backgroundColor:
Colors
.
white
,
body:
const
Center
(
child:
Text
(
'Hello'
),
),
bottomNavigationBar:
BottomAppBar
(
elevation:
4
,
child:
Row
(
children:
<
Widget
>[
IconButton
(
icon:
const
Icon
(
Icons
.
access_alarm
),
onPressed:
()
{})
],
),
return
Sheet
(
elevation:
4
,
resizable:
true
,
minResizableExtent:
200
,
physics:
const
SnapSheetPhysics
(
stops:
<
double
>[
0
,
200
,
double
.
infinity
],
relative:
false
,
parent:
BouncingSheetPhysics
(),
),
child:
Container
(
height:
500
,
child:
Scaffold
(
backgroundColor:
Colors
.
white
,
body:
const
Center
(
child:
Text
(
'Hello'
),
),
bottomNavigationBar:
BottomAppBar
(
elevation:
4
,
child:
Row
(
children:
<
Widget
>[
IconButton
(
icon:
const
Icon
(
Icons
.
access_alarm
),
onPressed:
()
{})
],
),
),
),
controller:
controller
,
),
controller:
controller
,
);
}
}
...
...
sheet/example/lib/examples/sheet/sheet_without_momentum.dart
View file @
30677ae
import
'dart:async'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:sheet/sheet.dart'
;
...
...
@@ -33,14 +32,13 @@ class _NoMomentumSheetState extends State<NoMomentumSheet> {
@override
Widget
build
(
BuildContext
context
)
{
return
Sheet
(
minExtent:
100
,
maxExtent:
400
,
elevation:
4
,
physics:
const
NoMomentumSheetPhysics
(),
child:
Container
(),
controller:
controller
,
return
Sheet
(
minExtent:
100
,
maxExtent:
400
,
elevation:
4
,
physics:
const
NoMomentumSheetPhysics
(),
child:
Container
(),
controller:
controller
,
);
}
}
...
...
sheet/example/lib/main.dart
View file @
30677ae
...
...
@@ -3,8 +3,6 @@ import 'package:example/sheet_example_page.dart';
import
'package:flutter/material.dart'
;
import
'package:sheet/route.dart'
;
void
main
(
)
=>
runApp
(
MyApp
());
class
MyApp
extends
StatelessWidget
{
...
...
sheet/lib/route.dart
View file @
30677ae
export
'src/route/base_route_extended.dart'
;
export
'src/route/cupertino/sheet_route.dart'
;
export
'src/route/delegated_transitions_route.dart'
;
export
'src/route/sheet_route.dart'
;
\ No newline at end of file
export
'src/route/sheet_route.dart'
;
...
...
Please
register
or
login
to post a comment