Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Fix UI for fav chip on top

Neeraj Gupta4accc796e68e
diff --git a/auth/lib/onboarding/view/common/tag_chip.dart b/auth/lib/onboarding/view/common/tag_chip.dart
index 3a52126acb..b287b8ebf5 100644
--- a/auth/lib/onboarding/view/common/tag_chip.dart
+++ b/auth/lib/onboarding/view/common/tag_chip.dart
@@ -59,21 +59,22 @@ class TagChip extends StatelessWidget {
),
child: Row(
children: [
- if (iconData != null) ...[
+ if (iconData != null)
Icon(
iconData,
- size: 16,
+ size: label.isNotEmpty ? 16 : 20,
color: color,
),
+ if (iconData != null && label.isNotEmpty)
const SizedBox(width: 8),
- ],
- Text(
- label,
- style: TextStyle(
- color: color,
- fontSize: 14,
+ if (label.isNotEmpty)
+ Text(
+ label,
+ style: TextStyle(
+ color: color,
+ fontSize: 14,
+ ),
),
- ),
],
),
),
diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart
index d0ee8a7872..3fa40a1f86 100644
--- a/auth/lib/ui/code_widget.dart
+++ b/auth/lib/ui/code_widget.dart
@@ -25,7 +25,6 @@ import 'package:ente_auth/utils/totp_util.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_context_menu/flutter_context_menu.dart';
-import 'package:flutter_svg/flutter_svg.dart';
import 'package:logging/logging.dart';
import 'package:move_to_background/move_to_background.dart';
diff --git a/auth/lib/ui/home_page.dart b/auth/lib/ui/home_page.dart
index c4b68b9485..f091e67307 100644
--- a/auth/lib/ui/home_page.dart
+++ b/auth/lib/ui/home_page.dart
@@ -460,7 +460,7 @@ class _HomePageState extends State<HomePage> {
}
if (index == 1 && hasFavouriteCodes) {
return TagChip(
- label: "Favourite",
+ label: "",
state: _isFavouriteOpen
? TagChipState.selected
: TagChipState.unselected,