svg logo, dark button bar

This commit is contained in:
stopflock
2025-08-30 23:55:54 -05:00
parent fa16e3c299
commit 8381388ffa
4 changed files with 64 additions and 5 deletions
+14 -3
View File
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:flutter_map_animations/flutter_map_animations.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:provider/provider.dart';
import '../app_state.dart';
@@ -151,7 +152,11 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
child: Scaffold(
key: _scaffoldKey,
appBar: AppBar(
title: const Text('DeFlock'),
title: SvgPicture.asset(
'assets/deflock-logo.svg',
height: 28,
fit: BoxFit.contain,
),
actions: [
IconButton(
tooltip: _getFollowMeTooltip(appState.followMeMode),
@@ -196,9 +201,15 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
),
child: Container(
decoration: BoxDecoration(
color: Colors.white,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(16),
boxShadow: [BoxShadow(color: Colors.black26, blurRadius: 10, offset: Offset(0, -2))],
boxShadow: [
BoxShadow(
color: Theme.of(context).shadowColor.withOpacity(0.3),
blurRadius: 10,
offset: Offset(0, -2),
)
],
),
margin: EdgeInsets.only(bottom: kBottomButtonBarMargin),
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
+8 -2
View File
@@ -89,11 +89,17 @@ class MapOverlays extends StatelessWidget {
bottom: kAttributionBottomOffset,
left: 10,
child: Container(
color: Colors.white70,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface.withOpacity(0.9),
borderRadius: BorderRadius.circular(4),
),
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 4),
child: Text(
attribution!,
style: const TextStyle(fontSize: 11),
style: TextStyle(
fontSize: 11,
color: Theme.of(context).colorScheme.onSurface,
),
),
),
),