diff --git a/lib/models/theme.dart b/lib/models/theme.dart index 60fc005..6c2c407 100644 --- a/lib/models/theme.dart +++ b/lib/models/theme.dart @@ -113,7 +113,7 @@ class ThemeModel with ChangeNotifier { tertiaryText: PrimerColors.gray500, background: PrimerColors.white, grayBackground: PrimerColors.gray100, - border: PrimerColors.gray100, + border: Colors.grey.shade400, ); case Brightness.dark: return Palette( @@ -123,7 +123,7 @@ class ThemeModel with ChangeNotifier { tertiaryText: PrimerColors.gray500, background: PrimerColors.black, grayBackground: PrimerColors.gray800, - border: PrimerColors.gray900, + border: Colors.grey.shade600, ); default: return null; diff --git a/lib/widgets/border_view.dart b/lib/widgets/border_view.dart index 01f4d7c..b9cbb72 100644 --- a/lib/widgets/border_view.dart +++ b/lib/widgets/border_view.dart @@ -7,7 +7,7 @@ class BorderView extends StatelessWidget { final double leftPadding; BorderView({ - this.height = 1, + this.height, this.leftPadding = 0, }); @@ -15,6 +15,18 @@ class BorderView extends StatelessWidget { Widget build(BuildContext context) { final theme = Provider.of(context); + if (height == null) { + // Physical pixel + return Container( + margin: EdgeInsets.only(left: leftPadding), + decoration: BoxDecoration( + border: Border( + top: BorderSide(color: theme.palette.border, width: 0), + ), + ), + ); + } + return Row( children: [ SizedBox( @@ -34,15 +46,5 @@ class BorderView extends StatelessWidget { ), ], ); - - // Physical pixel - // return Container( - // margin: EdgeInsets.only(left: leftPadding), - // decoration: BoxDecoration( - // border: Border( - // top: BorderSide(color: color, width: height), - // ), - // ), - // ); } }