File tree 1 file changed +15
-3
lines changed
packages/flutter/lib/src/material 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,27 @@ import 'theme.dart';
49
49
/// ),
50
50
/// ),
51
51
/// const Divider(
52
- /// color: Colors.black,
53
52
/// height: 20,
54
53
/// thickness: 5,
55
54
/// indent: 20,
56
- /// endIndent: 0,
55
+ /// endIndent: 20,
56
+ /// ),
57
+ /// // Subheader example from Material spec.
58
+ /// // https://material.io/components/dividers#types
59
+ /// Container(
60
+ /// padding: const EdgeInsets.only(left: 20),
61
+ /// child: Align(
62
+ /// alignment: AlignmentDirectional.centerStart,
63
+ /// child: Text(
64
+ /// 'Subheader',
65
+ /// style: Theme.of(context).textTheme.caption,
66
+ /// textAlign: TextAlign.start,
67
+ /// ),
68
+ /// ),
57
69
/// ),
58
70
/// Expanded(
59
71
/// child: Container(
60
- /// color: Colors.blue ,
72
+ /// color: Theme.of(context).colorScheme.primary ,
61
73
/// child: const Center(
62
74
/// child: Text('Below'),
63
75
/// ),
You can’t perform that action at this time.
0 commit comments