Skip to content

Commit

Permalink
feat: make dividers 1px thick (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Aug 20, 2023
1 parent 68f5373 commit 8fe7319
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions example/lib/src/containers/containers_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,17 @@ class _ContainersViewState extends State<ContainersView> {
() => _inDialog = v,
),
),
const SizedBox(
width: 10,
const Padding(
padding: EdgeInsets.symmetric(horizontal: 20),
child: SizedBox(height: 40, child: VerticalDivider()),
),
const Text('Show in dialog'),
],
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 20),
child: Divider(),
),
if (_inDialog)
SimpleDialog(
shadowColor: Colors.black,
Expand Down
3 changes: 2 additions & 1 deletion lib/src/themes/common_themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ ThemeData createYaruTheme({
bottomAppBarTheme: BottomAppBarTheme(color: colorScheme.surface),
navigationBarTheme: _createNavigationBarTheme(colorScheme),
navigationRailTheme: _createNavigationRailTheme(colorScheme),
dividerTheme: DividerThemeData(color: dividerColor),
dividerTheme:
DividerThemeData(color: dividerColor, space: 1.0, thickness: 0.0),
badgeTheme: BadgeThemeData(
backgroundColor: elevatedButtonColor ?? colorScheme.primary,
textColor: contrastColor(elevatedButtonColor ?? colorScheme.primary),
Expand Down

0 comments on commit 8fe7319

Please sign in to comment.