mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-24 14:20:37 -04:00
ui cleanup
This commit is contained in:
parent
b7f7258c70
commit
1f99279cd2
23 changed files with 358 additions and 218 deletions
|
@ -132,17 +132,20 @@ void showInfoToast(BuildContext context, String message) {
|
|||
).show(context);
|
||||
}
|
||||
|
||||
Widget styledTitleContainer(
|
||||
{required BuildContext context,
|
||||
required String title,
|
||||
required Widget child}) {
|
||||
Widget styledTitleContainer({
|
||||
required BuildContext context,
|
||||
required String title,
|
||||
required Widget child,
|
||||
Color? borderColor,
|
||||
Color? backgroundColor,
|
||||
}) {
|
||||
final theme = Theme.of(context);
|
||||
final scale = theme.extension<ScaleScheme>()!;
|
||||
final textTheme = theme.textTheme;
|
||||
|
||||
return DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
color: scale.primaryScale.border,
|
||||
color: borderColor ?? scale.primaryScale.border,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
)),
|
||||
|
@ -154,7 +157,8 @@ Widget styledTitleContainer(
|
|||
).paddingLTRB(8, 8, 8, 8),
|
||||
DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
color: scale.primaryScale.subtleBackground,
|
||||
color:
|
||||
backgroundColor ?? scale.primaryScale.subtleBackground,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue