forked from firka/flutter
Fix (Vertical)Divider samples & docs (#89062)
This commit is contained in:
committed by
GitHub
parent
34ba64738e
commit
d4c3c7efcd
@@ -68,7 +68,8 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
height: 20,
|
||||
thickness: 5,
|
||||
indent: 20,
|
||||
endIndent: 20,
|
||||
endIndent: 0,
|
||||
color: Colors.black,
|
||||
),
|
||||
// Subheader example from Material spec.
|
||||
// https://material.io/components/dividers#types
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
//***************************************************************************
|
||||
//* ▼▼▼▼▼▼▼▼ description ▼▼▼▼▼▼▼▼ (do not modify or remove section marker)
|
||||
|
||||
// This sample shows how to display a [VerticalDivider] between an purple and orange box
|
||||
// This sample shows how to display a [VerticalDivider] between a purple and orange box
|
||||
// inside a [Row]. The [VerticalDivider] is 20 logical pixels in width and contains a
|
||||
// horizontally centered black line that is 1 logical pixels thick. The grey
|
||||
// line is indented by 20 logical pixels.
|
||||
@@ -64,11 +64,11 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const VerticalDivider(
|
||||
color: Colors.grey,
|
||||
width: 20,
|
||||
thickness: 1,
|
||||
indent: 20,
|
||||
endIndent: 0,
|
||||
width: 20,
|
||||
color: Colors.grey,
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
|
||||
Reference in New Issue
Block a user