π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][packages] Remove unused ente_ui components (#11760)
aman-pilotc63071a70a51
diff --git a/mobile/packages/ui/lib/components/captioned_text_widget.dart b/mobile/packages/ui/lib/components/captioned_text_widget.dartdeleted file mode 100644index 7ba4d747e2..0000000000--- a/mobile/packages/ui/lib/components/captioned_text_widget.dart+++ /dev/null@@ -1,58 +0,0 @@-import 'package:ente_ui/theme/ente_theme.dart';-import 'package:flutter/material.dart';--class CaptionedTextWidget extends StatelessWidget {- final String title;- final String? subTitle;- final TextStyle? textStyle;- final bool makeTextBold;- final Color? textColor;- final Color? subTitleColor;- const CaptionedTextWidget({- required this.title,- this.subTitle,- this.textStyle,- this.makeTextBold = false,- this.textColor,- this.subTitleColor,- super.key,- });-- @override- Widget build(BuildContext context) {- final enteColorScheme = getEnteColorScheme(context);- final enteTextTheme = getEnteTextTheme(context);-- return Flexible(- child: Padding(- padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 2),- child: Row(- children: [- Flexible(- child: RichText(- text: TextSpan(- style:- textStyle ??- (makeTextBold- ? enteTextTheme.bodyBold.copyWith(color: textColor)- : enteTextTheme.body.copyWith(color: textColor)),- children: [- TextSpan(text: title),- subTitle != null- ? TextSpan(- text: ' \u2022 $subTitle',- style: enteTextTheme.small.copyWith(- color: subTitleColor ?? enteColorScheme.textMuted,- ),- )- : const TextSpan(text: ''),- ],- ),- ),- ),- ],- ),- ),- );- }-}diff --git a/mobile/packages/ui/lib/components/constrained_custom_scroll_view.dart b/mobile/packages/ui/lib/components/constrained_custom_scroll_view.dartdeleted file mode 100644index bc5545e990..0000000000--- a/mobile/packages/ui/lib/components/constrained_custom_scroll_view.dart+++ /dev/null@@ -1,29 +0,0 @@-import 'package:flutter/material.dart';--/// A CustomScrollView that is horizontally centered and constrained to a maximum width.-///-/// This widget is useful for creating responsive layouts that look good on both-/// mobile and wider screens (tablets, desktop).-class ConstrainedCustomScrollView extends StatelessWidget {- final List<Widget> slivers;- final double maxWidth;- final bool primary;-- const ConstrainedCustomScrollView({- required this.slivers,- this.maxWidth = 700,- this.primary = false,- super.key,- });-- @override- Widget build(BuildContext context) {- return Align(- alignment: Alignment.topCenter,- child: ConstrainedBox(- constraints: BoxConstraints(maxWidth: maxWidth),- child: CustomScrollView(primary: primary, slivers: slivers),- ),- );- }-}diff --git a/mobile/packages/ui/lib/components/developer_settings_widget.dart b/mobile/packages/ui/lib/components/developer_settings_widget.dartdeleted file mode 100644index eb3b3d0e4c..0000000000--- a/mobile/packages/ui/lib/components/developer_settings_widget.dart+++ /dev/null@@ -1,29 +0,0 @@-import 'package:ente_configuration/base_configuration.dart';-import 'package:ente_configuration/constants.dart';-import 'package:ente_strings/ente_strings.dart';-import 'package:flutter/material.dart';--class DeveloperSettingsWidget extends StatelessWidget {- final BaseConfiguration configuration;-- const DeveloperSettingsWidget(this.configuration, {super.key});-- @override- Widget build(BuildContext context) {- final endpoint = configuration.getHttpEndpoint();- if (endpoint != kDefaultProductionEndpoint) {- final endpointURI = Uri.parse(endpoint);- return Padding(- padding: const EdgeInsets.only(bottom: 20),- child: Text(- context.strings.customEndpoint(- "${endpointURI.host}:${endpointURI.port}",- ),- style: Theme.of(context).textTheme.bodySmall,- ),- );- } else {- return const SizedBox.shrink();- }- }-}diff --git a/mobile/packages/ui/lib/components/dialogs.dart b/mobile/packages/ui/lib/components/dialogs.dartdeleted file mode 100644index 23ac48a6fd..0000000000--- a/mobile/packages/ui/lib/components/dialogs.dart+++ /dev/null@@ -1,122 +0,0 @@-import 'package:ente_base/typedefs.dart';-import 'package:ente_ui/components/buttons/button_widget.dart';-import 'package:ente_ui/components/buttons/models/button_result.dart';-import 'package:ente_ui/components/buttons/models/button_type.dart';-import 'package:ente_ui/components/dialog_widget.dart';-import 'package:ente_ui/theme/ente_theme.dart';-import 'package:flutter/material.dart';--enum DialogUserChoice { firstChoice, secondChoice }--enum ActionType { confirm, critical }--// if dialog is dismissed by tapping outside, this will return null-Future<DialogUserChoice?> showChoiceDialogOld<T>(- BuildContext context,- String title,- String content, {- String firstAction = 'Ok',- Color? firstActionColor,- String secondAction = 'Cancel',- Color? secondActionColor,- ActionType actionType = ActionType.confirm,-}) {- final AlertDialog alert = AlertDialog(- title: Text(- title,- style: TextStyle(- color: actionType == ActionType.critical- ? Colors.red- : getEnteColorScheme(context).primary500,- ),- ),- content: Text(content, style: const TextStyle(height: 1.4)),- actions: [- TextButton(- child: Text(- firstAction,- style: TextStyle(- color:- firstActionColor ??- (actionType == ActionType.critical- ? Colors.red- : getEnteColorScheme(context).surface),- ),- ),- onPressed: () {- Navigator.of(- context,- rootNavigator: true,- ).pop(DialogUserChoice.firstChoice);- },- ),- TextButton(- child: Text(- secondAction,- style: TextStyle(- color:- secondActionColor ??- getEnteColorScheme(context).alternativeColor,- ),- ),- onPressed: () {- Navigator.of(- context,- rootNavigator: true,- ).pop(DialogUserChoice.secondChoice);- },- ),- ],- );-- return showDialog<DialogUserChoice>(- context: context,- builder: (BuildContext context) {- return alert;- },- barrierColor: Colors.black87,- );-}--///Will return null if dismissed by tapping outside-Future<ButtonResult?> showChoiceDialog(- BuildContext context, {- required String title,- String? body,- required String firstButtonLabel,- String secondButtonLabel = "Cancel",- ButtonType firstButtonType = ButtonType.neutral,- ButtonType secondButtonType = ButtonType.secondary,- ButtonAction firstButtonAction = ButtonAction.first,- ButtonAction secondButtonAction = ButtonAction.cancel,- FutureVoidCallback? firstButtonOnTap,- FutureVoidCallback? secondButtonOnTap,- bool isCritical = false,- IconData? icon,- bool isDismissible = true,-}) async {- final buttons = [- ButtonWidget(- buttonType: isCritical ? ButtonType.critical : firstButtonType,- labelText: firstButtonLabel,- isInAlert: true,- onTap: firstButtonOnTap,- buttonAction: firstButtonAction,- ),- ButtonWidget(- buttonType: secondButtonType,- labelText: secondButtonLabel,- isInAlert: true,- onTap: secondButtonOnTap,- buttonAction: secondButtonAction,- ),- ];- return showDialogWidget(- context: context,- title: title,- body: body,- buttons: buttons,- icon: icon,- isDismissible: isDismissible,- );-}diff --git a/mobile/packages/ui/lib/components/menu_item_widget.dart b/mobile/packages/ui/lib/components/menu_item_widget.dartdeleted file mode 100644index 1f1e869dec..0000000000--- a/mobile/packages/ui/lib/components/menu_item_widget.dart+++ /dev/null@@ -1,293 +0,0 @@-import 'package:ente_base/typedefs.dart';-import 'package:ente_pure_utils/ente_pure_utils.dart';-import 'package:ente_ui/components/menu_item_child_widgets.dart';-import 'package:ente_ui/models/execution_states.dart';-import 'package:ente_ui/theme/ente_theme.dart';-import "package:expandable/expandable.dart";-import 'package:flutter/material.dart';--class MenuItemWidget extends StatefulWidget {- final Widget captionedTextWidget;- final bool isExpandable;-- /// leading icon can be passed without specifing size of icon,- /// this component sets size to 20x20 irrespective of passed icon's size- final IconData? leadingIcon;- final Color? leadingIconColor;-- final Widget? leadingIconWidget;-- // leadIconSize deafult value is 20.- final double leadingIconSize;-- /// trailing icon can be passed without size as default size set by- /// flutter is what this component expects- final IconData? trailingIcon;- final Color? trailingIconColor;- final Widget? trailingWidget;- final bool trailingIconIsMuted;-- /// If provided, add this much extra spacing to the right of the trailing icon.- final double trailingExtraMargin;- final FutureVoidCallback? onTap;- final VoidCallback? onDoubleTap;- final VoidCallback? onLongPress;- final Color? menuItemColor;- final bool alignCaptionedTextToLeft;-- // singleBorderRadius is applied to the border when it's a standalone menu item.- // Widget will apply singleBorderRadius if value of both isTopBorderRadiusRemoved- // and isBottomBorderRadiusRemoved is false. Otherwise, multipleBorderRadius will- // be applied- final double singleBorderRadius;- final double multipleBorderRadius;- final Color? pressedColor;- final ExpandableController? expandableController;- final bool isBottomBorderRadiusRemoved;- final bool isTopBorderRadiusRemoved;-- /// disable gesture detector if not used- final bool isGestureDetectorDisabled;-- ///Success state will not be shown if this flag is set to true, only idle and- ///loading state- final bool showOnlyLoadingState;-- final bool surfaceExecutionStates;-- ///To show success state even when execution time < debouce time, set this- ///flag to true. If the loading state needs to be shown and success state not,- ///set the showOnlyLoadingState flag to true, setting this flag to false won't- ///help.- final bool alwaysShowSuccessState;-- const MenuItemWidget({- required this.captionedTextWidget,- this.isExpandable = false,- this.leadingIcon,- this.leadingIconColor,- this.leadingIconSize = 20.0,- this.leadingIconWidget,- this.trailingIcon,- this.trailingIconColor,- this.trailingWidget,- this.trailingIconIsMuted = false,- this.trailingExtraMargin = 0.0,- this.onTap,- this.onDoubleTap,- this.onLongPress,- this.menuItemColor,- this.alignCaptionedTextToLeft = false,- this.singleBorderRadius = 4.0,- this.multipleBorderRadius = 8.0,- this.pressedColor,- this.expandableController,- this.isBottomBorderRadiusRemoved = false,- this.isTopBorderRadiusRemoved = false,- this.isGestureDetectorDisabled = false,- this.showOnlyLoadingState = false,- this.surfaceExecutionStates = true,- this.alwaysShowSuccessState = false,- super.key,- });-- @override- State<MenuItemWidget> createState() => _MenuItemWidgetState();-}--class _MenuItemWidgetState extends State<MenuItemWidget> {- final _debouncer = Debouncer(const Duration(milliseconds: 300));- ValueNotifier<ExecutionState> executionStateNotifier = ValueNotifier(- ExecutionState.idle,- );-- Color? menuItemColor;- late double borderRadius;-- @override- void initState() {- menuItemColor = widget.menuItemColor;- borderRadius =- (widget.isBottomBorderRadiusRemoved || widget.isTopBorderRadiusRemoved)- ? widget.multipleBorderRadius- : widget.singleBorderRadius;- if (widget.expandableController != null) {- widget.expandableController!.addListener(() {- setState(() {});- });- }- super.initState();- }-- @override- void didChangeDependencies() {- menuItemColor = widget.menuItemColor;- super.didChangeDependencies();- }-- @override- void didUpdateWidget(covariant MenuItemWidget oldWidget) {- menuItemColor = widget.menuItemColor;- super.didUpdateWidget(oldWidget);- }-- @override- void dispose() {- if (widget.expandableController != null) {- widget.expandableController!.dispose();- }- executionStateNotifier.dispose();- super.dispose();- }-- @override- Widget build(BuildContext context) {- return widget.isExpandable || widget.isGestureDetectorDisabled- ? menuItemWidget(context)- : GestureDetector(- onTap: _onTap,- onDoubleTap: widget.onDoubleTap,- onLongPress: widget.onLongPress,- onTapDown: _onTapDown,- onTapUp: _onTapUp,- onTapCancel: _onCancel,- child: menuItemWidget(context),- );- }-- Widget menuItemWidget(BuildContext context) {- final circularRadius = Radius.circular(borderRadius);- final isExpanded = widget.expandableController?.value;- final bottomBorderRadius =- (isExpanded != null && isExpanded) || widget.isBottomBorderRadiusRemoved- ? const Radius.circular(0)- : circularRadius;- final topBorderRadius = widget.isTopBorderRadiusRemoved- ? const Radius.circular(0)- : circularRadius;- return AnimatedContainer(- duration: const Duration(milliseconds: 20),- width: double.infinity,- padding: const EdgeInsets.only(left: 16, right: 12),- decoration: BoxDecoration(- borderRadius: BorderRadius.only(- topLeft: topBorderRadius,- topRight: topBorderRadius,- bottomLeft: bottomBorderRadius,- bottomRight: bottomBorderRadius,- ),- color: menuItemColor,- ),- child: Row(- mainAxisAlignment: MainAxisAlignment.spaceBetween,- children: [- widget.alignCaptionedTextToLeft && widget.leadingIcon == null- ? const SizedBox.shrink()- : LeadingWidget(- leadingIconSize: widget.leadingIconSize,- leadingIcon: widget.leadingIcon,- leadingIconColor: widget.leadingIconColor,- leadingIconWidget: widget.leadingIconWidget,- ),- widget.captionedTextWidget,- if (widget.expandableController != null)- ExpansionTrailingIcon(- isExpanded: isExpanded!,- trailingIcon: widget.trailingIcon,- trailingIconColor: widget.trailingIconColor,- )- else- TrailingWidget(- executionStateNotifier: executionStateNotifier,- trailingIcon: widget.trailingIcon,- trailingIconColor: widget.trailingIconColor,- trailingWidget: widget.trailingWidget,- trailingIconIsMuted: widget.trailingIconIsMuted,- trailingExtraMargin: widget.trailingExtraMargin,- showExecutionStates: widget.surfaceExecutionStates,- key: ValueKey(widget.trailingIcon.hashCode),- ),- ],- ),- );- }-- Future<void> _onTap() async {- if (executionStateNotifier.value == ExecutionState.inProgress ||- executionStateNotifier.value == ExecutionState.successful) {- return;- }- _debouncer.run(- () => Future(() {- executionStateNotifier.value = ExecutionState.inProgress;- }),- );- await widget.onTap?.call().then((value) {- widget.alwaysShowSuccessState- ? executionStateNotifier.value = ExecutionState.successful- : null;- }, onError: (error, stackTrace) => _debouncer.cancelDebounce());- _debouncer.cancelDebounce();- if (widget.alwaysShowSuccessState) {- Future.delayed(const Duration(seconds: 2), () {- executionStateNotifier.value = ExecutionState.idle;- });- return;- }- if (executionStateNotifier.value == ExecutionState.inProgress) {- if (widget.showOnlyLoadingState) {- executionStateNotifier.value = ExecutionState.idle;- } else {- executionStateNotifier.value = ExecutionState.successful;- Future.delayed(const Duration(seconds: 2), () {- executionStateNotifier.value = ExecutionState.idle;- });- }- }- }-- void _onTapDown(TapDownDetails details) {- if (executionStateNotifier.value == ExecutionState.inProgress ||- executionStateNotifier.value == ExecutionState.successful) {- return;- }- setState(() {- if (widget.pressedColor == null) {- hasPassedGestureCallbacks()- ? menuItemColor = getEnteColorScheme(context).fillFaintPressed- : menuItemColor = widget.menuItemColor;- } else {- menuItemColor = widget.pressedColor;- }- });- }-- bool hasPassedGestureCallbacks() {- return widget.onDoubleTap != null ||- widget.onTap != null ||- widget.onLongPress != null;- }-- void _onTapUp(TapUpDetails details) {- if (executionStateNotifier.value == ExecutionState.inProgress ||- executionStateNotifier.value == ExecutionState.successful) {- return;- }- Future.delayed(- const Duration(milliseconds: 100),- () => setState(() {- menuItemColor = widget.menuItemColor;- }),- );- }-- void _onCancel() {- if (executionStateNotifier.value == ExecutionState.inProgress ||- executionStateNotifier.value == ExecutionState.successful) {- return;- }- setState(() {- menuItemColor = widget.menuItemColor;- });- }-}diff --git a/mobile/packages/ui/lib/components/menu_section_description_widget.dart b/mobile/packages/ui/lib/components/menu_section_description_widget.dartdeleted file mode 100644index 239f03c981..0000000000--- a/mobile/packages/ui/lib/components/menu_section_description_widget.dart+++ /dev/null@@ -1,21 +0,0 @@-import "package:ente_ui/theme/ente_theme.dart";-import 'package:flutter/material.dart';--class MenuSectionDescriptionWidget extends StatelessWidget {- final String content;- const MenuSectionDescriptionWidget({required this.content, super.key});-- @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/packages/ui/lib/components/notification_widget.dart b/mobile/packages/ui/lib/components/notification_widget.dartdeleted file mode 100644index 102b890ada..0000000000--- a/mobile/packages/ui/lib/components/notification_widget.dart+++ /dev/null@@ -1,232 +0,0 @@-import "package:ente_ui/components/buttons/icon_button_widget.dart";-import "package:ente_ui/theme/colors.dart";-import "package:ente_ui/theme/ente_theme.dart";-import "package:ente_ui/theme/ente_theme_data.dart";-import "package:ente_ui/theme/text_style.dart";-import 'package:flutter/material.dart';-import "package:flutter_animate/flutter_animate.dart";--// CreateNotificationType enum-enum NotificationType { warning, banner, greenBanner, goldenBanner, notice }--class NotificationWidget extends StatelessWidget {- final IconData startIcon;- final IconData? actionIcon;- final Widget? actionWidget;- final String text;- final String? subText;- final GestureTapCallback onTap;- final NotificationType type;- final bool isBlackFriday;- final TextStyle? mainTextStyle;-- const NotificationWidget({- super.key,- required this.startIcon,- required this.actionIcon,- required this.text,- required this.onTap,- this.mainTextStyle,- this.isBlackFriday = false,- this.subText,- this.actionWidget,- this.type = NotificationType.warning,- });-- @override- Widget build(BuildContext context) {- final colorScheme = getEnteColorScheme(context);- EnteTextTheme textTheme = getEnteTextTheme(context);- TextStyle mainTextStyle = this.mainTextStyle ?? darkTextTheme.bodyBold;- TextStyle subTextStyle = darkTextTheme.miniMuted;- LinearGradient? backgroundGradient;- Color? backgroundColor;- EnteColorScheme strokeColorScheme = darkScheme;- List<BoxShadow>? boxShadow;- switch (type) {- case NotificationType.warning:- backgroundColor = warning500;- break;- case NotificationType.banner:- textTheme = getEnteTextTheme(context);- backgroundColor = colorScheme.backgroundElevated2;- mainTextStyle = textTheme.bodyBold;- subTextStyle = textTheme.miniMuted;- strokeColorScheme = colorScheme;- boxShadow = [- BoxShadow(color: Colors.black.withValues(alpha: 0.25), blurRadius: 1),- ];- break;- case NotificationType.goldenBanner:- backgroundGradient = LinearGradient(- colors: [colorScheme.golden700, colorScheme.golden500],- stops: const [0.25, 1],- begin: Alignment.bottomCenter,- end: Alignment.topCenter,- );- boxShadow = Theme.of(context).colorScheme.enteTheme.shadowMenu;- break;- case NotificationType.greenBanner:- backgroundGradient = LinearGradient(- colors: [- getEnteColorScheme(context).primary700,- getEnteColorScheme(context).primary500,- ],- stops: const [0.25, 1],- begin: Alignment.bottomCenter,- end: Alignment.topCenter,- );- boxShadow = Theme.of(context).colorScheme.enteTheme.shadowMenu;- break;- case NotificationType.notice:- backgroundColor = colorScheme.backgroundElevated2;- mainTextStyle = textTheme.bodyBold;- subTextStyle = textTheme.miniMuted;- strokeColorScheme = colorScheme;- boxShadow = Theme.of(context).colorScheme.enteTheme.shadowMenu;- break;- }- return Center(- child: GestureDetector(- onTap: onTap,- child: Container(- decoration: BoxDecoration(- borderRadius: const BorderRadius.all(Radius.circular(8)),- boxShadow: boxShadow,- color: backgroundColor,- gradient: backgroundGradient,- ),- child: Padding(- padding: EdgeInsets.symmetric(- horizontal: 12,- vertical: actionWidget != null ? 12 : 8,- ),- child: Row(- mainAxisAlignment: MainAxisAlignment.spaceBetween,- children: [- isBlackFriday- ? Icon(- startIcon,- size: 36,- color: strokeColorScheme.strokeBase,- )- .animate(- onPlay: (controller) =>- controller.repeat(reverse: true),- delay: 2000.ms,- )- .shake(duration: 500.ms, hz: 6, delay: 1600.ms)- .scale(- duration: 500.ms,- begin: const Offset(0.9, 0.9),- end: const Offset(1.1, 1.1),- delay: 1600.ms,- // curve: Curves.easeInOut,- )- : Icon(- startIcon,- size: 36,- color: strokeColorScheme.strokeBase,- ),- const SizedBox(width: 12),- Expanded(- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Text(- text,- style: mainTextStyle,- textAlign: TextAlign.left,- ),- subText != null- ? Text(subText!, style: subTextStyle)- : const SizedBox.shrink(),- ],- ),- ),- const SizedBox(width: 12),- if (actionWidget != null)- actionWidget!- else if (actionIcon != null)- IconButtonWidget(- icon: actionIcon!,- iconButtonType: IconButtonType.rounded,- iconColor: strokeColorScheme.strokeBase,- defaultColor: strokeColorScheme.fillFaint,- pressedColor: strokeColorScheme.fillMuted,- onTap: onTap,- ),- ],- ),- ),- ),- ),- );- }-}--class NotificationTipWidget extends StatelessWidget {- final String name;- const NotificationTipWidget(this.name, {super.key});-- @override- Widget build(BuildContext context) {- final colorScheme = getEnteColorScheme(context);- final textTheme = getEnteTextTheme(context);- return Container(- padding: const EdgeInsets.fromLTRB(16, 12, 12, 12),- decoration: BoxDecoration(- border: Border.all(color: colorScheme.strokeFaint),- borderRadius: const BorderRadius.all(Radius.circular(4)),- ),- child: Row(- mainAxisAlignment: MainAxisAlignment.spaceBetween,- children: [- Flexible(flex: 12, child: Text(name, style: textTheme.miniFaint)),- Flexible(- flex: 2,- child: Icon(- Icons.tips_and_updates_outlined,- color: colorScheme.strokeFaint,- size: 36,- ),- ),- ],- ),- );- }-}--class NotificationNoteWidget extends StatelessWidget {- final String note;- const NotificationNoteWidget(this.note, {super.key});- @override- Widget build(BuildContext context) {- final colorScheme = getEnteColorScheme(context);- final textTheme = getEnteTextTheme(context);- return Container(- padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),- decoration: BoxDecoration(- border: Border.all(color: colorScheme.strokeMuted),- color: colorScheme.backgroundBase,- borderRadius: const BorderRadius.all(Radius.circular(8)),- ),- child: Row(- children: [- Icon(Icons.info, color: colorScheme.strokeMuted, size: 36),- const SizedBox(width: 12),- Flexible(- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Text("Note", style: textTheme.miniFaint),- const SizedBox(height: 2),- Text(note, style: textTheme.smallMuted),- ],- ),- ),- ],- ),- );- }-}diff --git a/mobile/packages/ui/lib/components/user_dialogs.dart b/mobile/packages/ui/lib/components/user_dialogs.dartdeleted file mode 100644index 4453bb558e..0000000000--- a/mobile/packages/ui/lib/components/user_dialogs.dart+++ /dev/null@@ -1,29 +0,0 @@-import "dart:async";--import "package:ente_strings/ente_strings.dart";-import "package:ente_ui/components/buttons/button_widget.dart";-import "package:ente_ui/components/buttons/models/button_type.dart";-import "package:ente_ui/components/dialog_widget.dart";-import "package:ente_utils/share_utils.dart";-import "package:flutter/material.dart";--Future<void> showInviteDialog(BuildContext context, String email) async {- await showDialogWidget(- context: context,- title: context.strings.inviteToEnte,- icon: Icons.info_outline,- body: context.strings.emailNoEnteAccount(email),- isDismissible: true,- buttons: [- ButtonWidget(- buttonType: ButtonType.neutral,- icon: Icons.adaptive.share,- labelText: context.strings.sendInvite,- isInAlert: true,- onTap: () async {- unawaited(shareText(context.strings.shareTextRecommendUsingEnte));- },- ),- ],- );-}diff --git a/mobile/packages/ui/pubspec.yaml b/mobile/packages/ui/pubspec.yamlindex df535689de..86f4b071be 100644--- a/mobile/packages/ui/pubspec.yaml+++ b/mobile/packages/ui/pubspec.yaml@@ -10,8 +10,6 @@ dependencies:dio: 5.9.2ente_base:path: ../../packages/base- ente_configuration:- path: ../../packages/configurationente_logging:path: ../../packages/loggingente_pure_utils:@@ -23,7 +21,6 @@ dependencies:expandable: 5.0.1flutter:sdk: flutter- flutter_animate: 4.5.2fluttertoast: 8.2.14hugeicons: 1.1.7modal_bottom_sheet: 3.0.0