mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: divider colors for top and bottom border widgets (#1468)
This commit is contained in:
parent
a8dc55b4f3
commit
5a8f1db5a6
@ -219,7 +219,7 @@ class HomeTopBar extends StatelessWidget {
|
|||||||
.padding(
|
.padding(
|
||||||
horizontal: HomeInsets.topBarTitlePadding,
|
horizontal: HomeInsets.topBarTitlePadding,
|
||||||
)
|
)
|
||||||
.bottomBorder(color: Colors.grey.shade300),
|
.bottomBorder(color: Theme.of(context).dividerColor),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class NewAppButton extends StatelessWidget {
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: HomeSizes.menuAddButtonHeight,
|
height: HomeSizes.menuAddButtonHeight,
|
||||||
child: child,
|
child: child,
|
||||||
).topBorder(color: Colors.grey.shade300);
|
).topBorder(color: Theme.of(context).dividerColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _showCreateAppDialog(BuildContext context) async {
|
Future<void> _showCreateAppDialog(BuildContext context) async {
|
||||||
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
export 'package:styled_widget/styled_widget.dart';
|
export 'package:styled_widget/styled_widget.dart';
|
||||||
|
|
||||||
extension FlowyStyledWidget on Widget {
|
extension FlowyStyledWidget on Widget {
|
||||||
Widget bottomBorder({double width = 0.5, Color color = Colors.grey}) {
|
Widget bottomBorder({double width = 1.0, Color color = Colors.grey}) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(
|
||||||
@ -13,7 +13,7 @@ extension FlowyStyledWidget on Widget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget topBorder({double width = 0.5, Color color = Colors.grey}) {
|
Widget topBorder({double width = 1.0, Color color = Colors.grey}) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(
|
||||||
|
Loading…
Reference in New Issue
Block a user