mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 13:48:43 -04:00
wallpapers and ui cleanup
This commit is contained in:
parent
77c68aa45f
commit
6bd60207d8
32 changed files with 17947 additions and 150 deletions
|
@ -9,8 +9,9 @@ class StyledScaffold extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final scale = theme.extension<ScaleScheme>()!;
|
||||
final scaleScheme = theme.extension<ScaleScheme>()!;
|
||||
final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
final scale = scaleScheme.scale(ScaleKind.primary);
|
||||
|
||||
final enableBorder = !isMobileSize(context);
|
||||
|
||||
|
@ -18,13 +19,11 @@ class StyledScaffold extends StatelessWidget {
|
|||
clipEnabled: enableBorder,
|
||||
borderEnabled: scaleConfig.useVisualIndicators,
|
||||
borderRadius: 16 * scaleConfig.borderRadiusScale,
|
||||
borderColor: scale.primaryScale.border,
|
||||
borderColor: scale.border,
|
||||
child: Scaffold(appBar: appBar, body: body, key: key));
|
||||
|
||||
if (!scaleConfig.useVisualIndicators) {
|
||||
scaffold = scaffold.withShadow(
|
||||
offset: const Offset(0, 16),
|
||||
shadowColor: scale.primaryScale.primary.withAlpha(0x3F).darken(60));
|
||||
scaffold = scaffold.withThemedShadow(scaleConfig, scale);
|
||||
}
|
||||
|
||||
return GestureDetector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue