From 8db31a556b16d8c0aa5b904b14bfdc37a401fdfc Mon Sep 17 00:00:00 2001 From: Jose Alba Date: Mon, 28 Sep 2020 14:32:00 +0200 Subject: [PATCH] Divider with subheader example update (#65944) * Divider with subheader example update * fixed issues * Addressed comments * fixed issues --- packages/flutter/lib/src/material/divider.dart | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/material/divider.dart b/packages/flutter/lib/src/material/divider.dart index 01342d0685..f31b75a364 100644 --- a/packages/flutter/lib/src/material/divider.dart +++ b/packages/flutter/lib/src/material/divider.dart @@ -49,15 +49,27 @@ import 'theme.dart'; /// ), /// ), /// const Divider( -/// color: Colors.black, /// height: 20, /// thickness: 5, /// indent: 20, -/// endIndent: 0, +/// endIndent: 20, +/// ), +/// // Subheader example from Material spec. +/// // https://material.io/components/dividers#types +/// Container( +/// padding: const EdgeInsets.only(left: 20), +/// child: Align( +/// alignment: AlignmentDirectional.centerStart, +/// child: Text( +/// 'Subheader', +/// style: Theme.of(context).textTheme.caption, +/// textAlign: TextAlign.start, +/// ), +/// ), /// ), /// Expanded( /// child: Container( -/// color: Colors.blue, +/// color: Theme.of(context).colorScheme.primary, /// child: const Center( /// child: Text('Below'), /// ),