Skip to content

Commit a0c13ba

Browse files
committed
GFBottomsheet component completed
1 parent 4881416 commit a0c13ba

File tree

2 files changed

+5
-207
lines changed

2 files changed

+5
-207
lines changed

example/lib/main_temp.dart

Lines changed: 0 additions & 202 deletions
This file was deleted.

lib/components/bottom_sheet/gf_bottom_sheet.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ class GFBottomSheet extends StatefulWidget {
3535
final Widget stickyHeader;
3636

3737
/// [contentBody] is the body of GFBottomSheet.
38-
/// User can interact by tapping the [contentBody]
38+
/// User can interact by swiping or tapping the [contentBody]
3939
final Widget contentBody;
4040

4141
/// [stickyFooter] is the footer of GFBottomSheet.
4242
/// User can interact by swiping or tapping the [stickyFooter]
4343
final Widget stickyFooter;
4444

45-
/// [stickyFooterHeight] defines the height of GFBottomSheet footer.
45+
/// [stickyFooterHeight] defines the height of GFBottomSheet's [stickyFooter].
4646
final double stickyFooterHeight;
4747

48-
/// [stickyHeaderHeight] defines the height of GFBottomSheet footer.
48+
/// [stickyHeaderHeight] defines the height of GFBottomSheet's [stickyHeader].
4949
final double stickyHeaderHeight;
5050

5151
/// [elevation] controls shadow below the GFBottomSheet material.
52-
/// Must be greater or equalto 0. Default value is 0.
52+
/// Must be greater or equal to 0. Default value is 0.
5353
final double elevation;
5454

5555
///[enableExpandableContent] allows [contentBody] to expand.
@@ -69,10 +69,10 @@ class GFBottomSheet extends StatefulWidget {
6969

7070
class _GFBottomSheetState extends State<GFBottomSheet>
7171
with TickerProviderStateMixin {
72+
final StreamController<double> controller = StreamController.broadcast();
7273
bool isDragDirectionUp;
7374
bool showBottomSheet = false;
7475
Function _controllerListener;
75-
final StreamController<double> controller = StreamController.broadcast();
7676
double position;
7777
bool showContent = false;
7878

0 commit comments

Comments
 (0)