Skip to content

armgit / ente

Public Imported from GitHub
0

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

cleanup

AmanRajSinghMourya60b3013c245d
diff --git a/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart
deleted file mode 100644
index f00d5d4083..0000000000
--- a/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart
+++ /dev/null
@@ -1,56 +0,0 @@
-import "package:flutter/material.dart";
-import "package:photos/theme/ente_theme.dart";
-
-///https://www.figma.com/file/SYtMyLBs5SAOkTbfMMzhqt/ente-Visual-Design?node-id=8119%3A59513&t=gQa1to5jY89Qk1k7-4
-class ChipButtonWidget extends StatelessWidget {
- final String? label;
- final IconData? leadingIcon;
- final double iconSize;
- final VoidCallback? onTap;
- final bool noChips;
-
- const ChipButtonWidget(
- this.label, {
- this.leadingIcon,
- this.onTap,
- this.iconSize = 16,
- this.noChips = false,
- super.key,
- });
-
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTap: onTap?.call,
- child: Container(
- width: noChips ? double.infinity : null,
- decoration: BoxDecoration(
- color: getEnteColorScheme(context).fillFaint,
- borderRadius: const BorderRadius.all(Radius.circular(4)),
- ),
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- mainAxisSize: MainAxisSize.min,
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- leadingIcon != null
- ? Icon(leadingIcon, size: iconSize)
- : const SizedBox.shrink(),
- if (label != null && leadingIcon != null)
- const SizedBox(width: 4),
- if (label != null)
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 4),
- child: Text(
- label!,
- style: getEnteTextTheme(context).miniBold,
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
-}