Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused Auth UI helpers

Neeraj Guptac4b3b9775d8b
diff --git a/mobile/apps/auth/lib/ui/components/menu_section_description_widget.dart b/mobile/apps/auth/lib/ui/components/menu_section_description_widget.dart
deleted file mode 100644
index ff29ccf0ca..0000000000
--- a/mobile/apps/auth/lib/ui/components/menu_section_description_widget.dart
+++ /dev/null
@@ -1,21 +0,0 @@
-import 'package:ente_auth/theme/ente_theme.dart';
-import 'package:flutter/material.dart';
-
-class MenuSectionDescriptionWidget extends StatelessWidget {
- final String content;
- const MenuSectionDescriptionWidget({super.key, required this.content});
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 6),
- child: Text(
- content,
- textAlign: TextAlign.left,
- style: getEnteTextTheme(
- context,
- ).mini.copyWith(color: getEnteColorScheme(context).textMuted),
- ),
- );
- }
-}
diff --git a/mobile/apps/auth/lib/ui/lifecycle_event_handler.dart b/mobile/apps/auth/lib/ui/lifecycle_event_handler.dart
deleted file mode 100644
index 6de81fa3c3..0000000000
--- a/mobile/apps/auth/lib/ui/lifecycle_event_handler.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-import 'package:flutter/foundation.dart';
-import 'package:flutter/widgets.dart';
-
-class LifecycleEventHandler extends WidgetsBindingObserver {
- final AsyncCallback? resumeCallBack;
- final AsyncCallback? suspendingCallBack;
-
- LifecycleEventHandler({this.resumeCallBack, this.suspendingCallBack});
-
- @override
- Future<void> didChangeAppLifecycleState(AppLifecycleState state) async {
- switch (state) {
- case AppLifecycleState.resumed:
- if (resumeCallBack != null) {
- await resumeCallBack!();
- }
- break;
- case AppLifecycleState.inactive:
- case AppLifecycleState.hidden:
- case AppLifecycleState.paused:
- case AppLifecycleState.detached:
- if (suspendingCallBack != null) {
- await suspendingCallBack!();
- }
- break;
- }
- }
-}
diff --git a/mobile/apps/auth/lib/ui/settings/settings_section_title.dart b/mobile/apps/auth/lib/ui/settings/settings_section_title.dart
deleted file mode 100644
index ec62879692..0000000000
--- a/mobile/apps/auth/lib/ui/settings/settings_section_title.dart
+++ /dev/null
@@ -1,29 +0,0 @@
-import 'package:flutter/material.dart';
-
-class SettingsSectionTitle extends StatelessWidget {
- final String title;
- final Color? color;
-
- const SettingsSectionTitle(this.title, {super.key, this.color});
-
- @override
- Widget build(BuildContext context) {
- return Column(
- children: [
- const Padding(padding: EdgeInsets.all(4)),
- Align(
- alignment: Alignment.centerLeft,
- child: Text(
- title,
- style: color != null
- ? Theme.of(
- context,
- ).textTheme.titleLarge!.merge(TextStyle(color: color))
- : Theme.of(context).textTheme.titleLarge,
- ),
- ),
- const Padding(padding: EdgeInsets.all(4)),
- ],
- );
- }
-}