mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-18 15:25:27 +02:00
improvements & bugfixes
This commit is contained in:
parent
82fe501d1d
commit
4170ec99ea
@ -75,11 +75,11 @@ class _MemoryMapScreenState extends State<MemoryMapScreen> with Loadable {
|
||||
background: isMaterial(context)
|
||||
? MemoryMaterialMaps(
|
||||
location: widget.location,
|
||||
initialZoom: 13,
|
||||
initialZoom: 14,
|
||||
)
|
||||
: MemoryCupertinoMaps(
|
||||
location: widget.location,
|
||||
initialZoom: 13,
|
||||
initialZoom: 14,
|
||||
),
|
||||
persistentHeader: Container(
|
||||
width: double.infinity,
|
||||
|
@ -142,6 +142,7 @@ class _MemorySheetState extends State<MemorySheet> with Loadable {
|
||||
isExpanded = true;
|
||||
});
|
||||
},
|
||||
enableToggle: true,
|
||||
background: GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
),
|
||||
@ -234,11 +235,7 @@ class _MemorySheetState extends State<MemorySheet> with Loadable {
|
||||
children: [
|
||||
Icon(
|
||||
context.platformIcons.time,
|
||||
size: platformThemeData(
|
||||
context,
|
||||
material: (data) => data.textTheme.bodyLarge!.fontSize,
|
||||
cupertino: (data) => data.textTheme.textStyle.fontSize,
|
||||
),
|
||||
size: getIconSizeForBodyText(context),
|
||||
),
|
||||
const SizedBox(width: TINY_SPACE),
|
||||
Text(
|
||||
@ -258,6 +255,7 @@ class _MemorySheetState extends State<MemorySheet> with Loadable {
|
||||
isExpanded
|
||||
? context.platformIcons.downArrow
|
||||
: context.platformIcons.upArrow,
|
||||
size: getIconSizeForBodyText(context),
|
||||
),
|
||||
const SizedBox(width: TINY_SPACE),
|
||||
Text(
|
||||
|
@ -4,6 +4,7 @@ import 'package:intl/intl.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
||||
import 'package:quid_faciam_hodie/models/timeline.dart';
|
||||
import 'package:quid_faciam_hodie/utils/theme.dart';
|
||||
|
||||
class TimelineOverlay extends StatelessWidget {
|
||||
final DateTime date;
|
||||
@ -88,13 +89,7 @@ class TimelineOverlay extends StatelessWidget {
|
||||
curve: Curves.linearToEaseOut,
|
||||
child: Icon(
|
||||
Icons.public,
|
||||
size: platformThemeData(
|
||||
context,
|
||||
material: (data) =>
|
||||
data.textTheme.bodyLarge!.fontSize,
|
||||
cupertino: (data) =>
|
||||
data.textTheme.textStyle.fontSize,
|
||||
),
|
||||
size: getIconSizeForBodyText(context),
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
|
@ -37,3 +37,9 @@ Color getSheetColor(final BuildContext context) => platformThemeData(
|
||||
data.bottomSheetTheme.modalBackgroundColor ?? data.bottomAppBarColor,
|
||||
cupertino: (data) => data.barBackgroundColor,
|
||||
);
|
||||
|
||||
double getIconSizeForBodyText(final BuildContext context) => platformThemeData(
|
||||
context,
|
||||
material: (data) => data.textTheme.bodyText1!.fontSize ?? 16,
|
||||
cupertino: (data) => data.textTheme.textStyle.fontSize ?? 16,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user