Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Polish magic section UI

ashilkn637f3522a92a
diff --git a/mobile/lib/ui/viewer/search_tab/magic_section.dart b/mobile/lib/ui/viewer/search_tab/magic_section.dart
index 882968a9a9..14b3772276 100644
--- a/mobile/lib/ui/viewer/search_tab/magic_section.dart
+++ b/mobile/lib/ui/viewer/search_tab/magic_section.dart
@@ -82,11 +82,12 @@ class _MagicSectionState extends State<MagicSection> {
super.dispose();
}
- @override
- void didUpdateWidget(covariant MagicSection oldWidget) {
- super.didUpdateWidget(oldWidget);
- _magicSearchResults = widget.magicSearchResults;
- }
+ // @override
+ // void didUpdateWidget(covariant MagicSection oldWidget) {
+ // super.didUpdateWidget(oldWidget);
+ // //widget.magicSearch is empty when doing a hot reload
+ // _magicSearchResults = widget.magicSearchResults;
+ // }
@override
Widget build(BuildContext context) {
@@ -159,7 +160,7 @@ class MagicRecommendation extends StatelessWidget {
static const _width = 100.0;
static const _height = 110.0;
static const _borderWidth = 1.0;
- static const _cornerRadius = 5.0;
+ static const _cornerRadius = 12.0;
static const _cornerSmoothing = 1.0;
final GenericSearchResult magicSearchResult;
const MagicRecommendation(this.magicSearchResult, {super.key});
@@ -199,7 +200,7 @@ class MagicRecommendation extends StatelessWidget {
cornerSmoothing: _cornerSmoothing,
),
child: Container(
- color: Colors.white.withOpacity(0.16),
+ color: getEnteColorScheme(context).strokeFaint,
width: _width + _borderWidth * 2,
height: _height + _borderWidth * 2,
),
@@ -238,8 +239,8 @@ class MagicRecommendation extends StatelessWidget {
: const NoThumbnailWidget(),
),
Container(
- height: 145,
- width: 100,
+ height: _height,
+ width: _width,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,