Fix (Vertical)Divider samples & docs (#89062)

This commit is contained in:
creativecreatorormaybenot
2021-09-08 22:32:04 +00:00
committed by GitHub
parent 34ba64738e
commit d4c3c7efcd
5 changed files with 12 additions and 6 deletions

View File

@@ -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

View File

@@ -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(