Skip to content

Commit 7a6f443

Browse files
authored
[Gallery] Fix divider for bottom sheet demo on web (#300)
* Fix divider for bottom sheet demo on web * Update code_segments.dart
1 parent 2f017a7 commit 7a6f443

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

gallery/gallery/lib/codeviewer/code_segments.dart

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,12 @@ class CodeSegments {
26962696
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
26972697
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
26982698
TextSpan(style: codeStyle.classStyle, text: 'Divider'),
2699-
TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
2699+
TextSpan(style: codeStyle.punctuationStyle, text: '('),
2700+
TextSpan(style: codeStyle.baseStyle, text: 'thickness'),
2701+
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
2702+
TextSpan(style: codeStyle.baseStyle, text: ' '),
2703+
TextSpan(style: codeStyle.numberStyle, text: '1'),
2704+
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
27002705
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
27012706
TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
27022707
TextSpan(style: codeStyle.punctuationStyle, text: '('),
@@ -2984,7 +2989,12 @@ class CodeSegments {
29842989
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
29852990
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
29862991
TextSpan(style: codeStyle.classStyle, text: 'Divider'),
2987-
TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
2992+
TextSpan(style: codeStyle.punctuationStyle, text: '('),
2993+
TextSpan(style: codeStyle.baseStyle, text: 'thickness'),
2994+
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
2995+
TextSpan(style: codeStyle.baseStyle, text: ' '),
2996+
TextSpan(style: codeStyle.numberStyle, text: '1'),
2997+
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
29882998
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
29892999
TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
29903000
TextSpan(style: codeStyle.punctuationStyle, text: '('),

gallery/gallery/lib/demos/material/bottom_sheet_demo.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class _BottomSheetContent extends StatelessWidget {
8989
),
9090
),
9191
),
92-
Divider(),
92+
Divider(thickness: 1),
9393
Expanded(
9494
child: ListView.builder(
9595
itemCount: 21,

0 commit comments

Comments
 (0)