mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 15:45:26 +02:00
fixes for iOS
This commit is contained in:
parent
ff63d87600
commit
684de568b3
@ -76,6 +76,9 @@ class _MyAppState extends State<MyApp> {
|
|||||||
darkTheme: DARK_THEME_MATERIAL,
|
darkTheme: DARK_THEME_MATERIAL,
|
||||||
themeMode: ThemeMode.system,
|
themeMode: ThemeMode.system,
|
||||||
),
|
),
|
||||||
|
cupertino: (_, __) => CupertinoAppData(
|
||||||
|
theme: LIGHT_THEME_CUPERTINO,
|
||||||
|
),
|
||||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||||
supportedLocales: AppLocalizations.supportedLocales,
|
supportedLocales: AppLocalizations.supportedLocales,
|
||||||
routes: {
|
routes: {
|
||||||
|
@ -44,7 +44,7 @@ class CalendarScreen extends StatelessWidget {
|
|||||||
: null,
|
: null,
|
||||||
trailingActions: calendar.isInSelectMode
|
trailingActions: calendar.isInSelectMode
|
||||||
? <Widget>[
|
? <Widget>[
|
||||||
IconButton(
|
PlatformIconButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
calendar.setIsSavingToGallery(true);
|
calendar.setIsSavingToGallery(true);
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ class CalendarScreen extends StatelessWidget {
|
|||||||
calendar.filterMemories(memories.memories);
|
calendar.filterMemories(memories.memories);
|
||||||
|
|
||||||
final hasSavedAll = await showPlatformDialog(
|
final hasSavedAll = await showPlatformDialog(
|
||||||
|
barrierDismissible: true,
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => SaveToGalleryModal(
|
builder: (_) => SaveToGalleryModal(
|
||||||
memories: memoriesToSave,
|
memories: memoriesToSave,
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
||||||
import 'package:quid_faciam_hodie/foreign_types/memory.dart';
|
import 'package:quid_faciam_hodie/foreign_types/memory.dart';
|
||||||
@ -30,11 +32,9 @@ class _SaveToGalleryModalState extends State<SaveToGalleryModal> {
|
|||||||
for (final memory in widget.memories) {
|
for (final memory in widget.memories) {
|
||||||
await memory.saveFileToGallery();
|
await memory.saveFileToGallery();
|
||||||
|
|
||||||
if (widget.memories.last != memory) {
|
setState(() {
|
||||||
setState(() {
|
currentMemory = min(widget.memories.length - 1, currentMemory + 1);
|
||||||
currentMemory = currentMemory + 1;
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user