Skip to content

Commit

Permalink
fix: default replies sheet on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Dec 8, 2024
1 parent 8aca26f commit 9a23fef
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 37 deletions.
11 changes: 10 additions & 1 deletion lib/presentation/screens/auth.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:parousia/go_router_builder.dart';
import 'package:parousia/util/config.dart';
import 'package:supabase_auth_ui/supabase_auth_ui.dart';
Expand All @@ -12,10 +13,18 @@ class AuthScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final config = ConfigService().config;
final l10n = AppLocalizations.of(context)!;
final theme = Theme.of(context);

return Scaffold(
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.appName),
title: Text(
l10n.appName.toUpperCase(),
style: GoogleFonts.ranchers(
color: theme.colorScheme.primary,
textStyle: theme.textTheme.headlineLarge,
),
),
// TODO(borgoat): this shouldn't be needed: fix the navigation stack instead
automaticallyImplyLeading: false,
),
Expand Down
10 changes: 9 additions & 1 deletion lib/presentation/screens/home.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:parousia/go_router_builder.dart';
import 'package:parousia/models/models.dart';
import 'package:parousia/presentation/presentation.dart';
Expand Down Expand Up @@ -31,6 +32,7 @@ class HomeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
final theme = Theme.of(context);

final nothingToShow = groups == null || groups!.isEmpty;
final innerBody = nothingToShow
Expand All @@ -42,7 +44,13 @@ class HomeScreen extends StatelessWidget {

return Scaffold(
appBar: AppBar(
title: Text(l10n.appName),
title: Text(
l10n.appName.toUpperCase(),
style: GoogleFonts.ranchers(
color: theme.colorScheme.primary,
textStyle: theme.textTheme.headlineLarge,
),
),
bottom: loading
? PreferredSize(
preferredSize: Size(MediaQuery.of(context).size.width, 0),
Expand Down
10 changes: 2 additions & 8 deletions lib/presentation/widgets/schedule_member_tile.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:parousia/models/models.dart';
import 'package:parousia/presentation/widgets/widgets.dart';
Expand Down Expand Up @@ -57,12 +56,7 @@ class ScheduleMemberTile extends StatelessWidget {

Future<(RecurrenceRule?, ReplyOptions?)?> _confirmDefaultReplyActionSheet<T>(
BuildContext context, WidgetBuilder builder) async {
final isCupertino = Theme.of(context).platform == TargetPlatform.iOS;

return await (isCupertino
? showCupertinoModalPopup<(RecurrenceRule?, ReplyOptions?)>(
context: context, builder: builder)
: showModalBottomSheet<(RecurrenceRule?, ReplyOptions?)>(
context: context, builder: builder));
return showModalBottomSheet<(RecurrenceRule?, ReplyOptions?)>(
context: context, builder: builder);
}
}
66 changes: 39 additions & 27 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
PODS:
- app_links (1.0.0):
- FlutterMacOS
- AppAuth (1.6.2):
- AppAuth/Core (= 1.6.2)
- AppAuth/ExternalUserAgent (= 1.6.2)
- AppAuth/Core (1.6.2)
- AppAuth/ExternalUserAgent (1.6.2):
- AppAuth (1.7.6):
- AppAuth/Core (= 1.7.6)
- AppAuth/ExternalUserAgent (= 1.7.6)
- AppAuth/Core (1.7.6)
- AppAuth/ExternalUserAgent (1.7.6):
- AppAuth/Core
- dynamic_color (0.0.2):
- FlutterMacOS
- file_selector_macos (0.0.1):
- FlutterMacOS
- FlutterMacOS (1.0.0)
- google_sign_in_ios (0.0.1):
- AppAuth (>= 1.7.4)
- Flutter
- FlutterMacOS
- GoogleSignIn (~> 7.0)
- GoogleSignIn (7.0.0):
- AppAuth (~> 1.5)
- GTMAppAuth (< 3.0, >= 1.3)
- GTMSessionFetcher/Core (< 4.0, >= 1.1)
- GTMAppAuth (2.0.0):
- AppAuth/Core (~> 1.6)
- GTMSessionFetcher/Core (< 4.0, >= 1.5)
- GTMSessionFetcher/Core (3.2.0)
- GoogleSignIn (~> 7.1)
- GTMSessionFetcher (>= 3.4.0)
- GoogleSignIn (7.1.0):
- AppAuth (< 2.0, >= 1.7.3)
- GTMAppAuth (< 5.0, >= 4.1.1)
- GTMSessionFetcher/Core (~> 3.3)
- GTMAppAuth (4.1.1):
- AppAuth/Core (~> 1.7)
- GTMSessionFetcher/Core (< 4.0, >= 3.3)
- GTMSessionFetcher (3.5.0):
- GTMSessionFetcher/Full (= 3.5.0)
- GTMSessionFetcher/Core (3.5.0)
- GTMSessionFetcher/Full (3.5.0):
- GTMSessionFetcher/Core
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- share_plus (0.0.1):
- FlutterMacOS
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
Expand All @@ -42,6 +50,7 @@ DEPENDENCIES:
- FlutterMacOS (from `Flutter/ephemeral`)
- google_sign_in_ios (from `Flutter/ephemeral/.symlinks/plugins/google_sign_in_ios/darwin`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
- share_plus (from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`)
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
- sign_in_with_apple (from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
Expand All @@ -66,6 +75,8 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/google_sign_in_ios/darwin
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
share_plus:
:path: Flutter/ephemeral/.symlinks/plugins/share_plus/macos
shared_preferences_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
sign_in_with_apple:
Expand All @@ -74,20 +85,21 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos

SPEC CHECKSUMS:
app_links: 4481ed4d71f384b0c3ae5016f4633aa73d32ff67
AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570
dynamic_color: 2eaa27267de1ca20d879fbd6e01259773fb1670f
file_selector_macos: 468fb6b81fac7c0e88d71317f3eec34c3b008ff9
app_links: 9028728e32c83a0831d9db8cf91c526d16cc5468
AppAuth: d4f13a8fe0baf391b2108511793e4b479691fb73
dynamic_color: b820c000cc68df65e7ba7ff177cb98404ce56651
file_selector_macos: 6280b52b459ae6c590af5d78fc35c7267a3c4b31
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
google_sign_in_ios: 1bfaf6607b44cd1b24c4d4bc39719870440f9ce1
GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842
GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae
GTMSessionFetcher: 41b9ef0b4c08a6db4b7eb51a21ae5183ec99a2c8
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sign_in_with_apple: a9e97e744e8edc36aefc2723111f652102a7a727
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
google_sign_in_ios: 0ab078e60da6dfe23cbc55c83502b52bba1aad63
GoogleSignIn: d4281ab6cf21542b1cfaff85c191f230b399d2db
GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
share_plus: 510bf0af1a42cd602274b4629920c9649c52f4cc
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
sign_in_with_apple: 6673c03c9e3643f6c8d33601943fbfa9ae99f94e
url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673

PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3

COCOAPODS: 1.14.3
COCOAPODS: 1.16.2
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.7.1"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82
url: "https://pub.dev"
source: hosted
version: "6.2.1"
google_identity_services_web:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ dependencies:
dynamic_color: ^1.6.8
flutter_native_splash: ^2.4.2
font_awesome_flutter: ^10.6.0
google_fonts: ^6.2.1
mime: ^1.0.4
memoized: ^2.2.6
universal_html: ^2.2.4
Expand Down

0 comments on commit 9a23fef

Please sign in to comment.