summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj-S62 <anuj603362@gmail.com>2023-12-14 21:31:01 +0530
committerAnuj Solanki <anuj603362@gmail.com>2023-12-15 05:37:12 +0000
commit8d00e5f7c79732b040303cde53db3dfc7b23e1b3 (patch)
tree48158be9bca42c5f2264331a158b2097014a13ea
parent735de5a38ea937ee13157f6ac594053ddb8b027b (diff)
flutter-mediaplayer: Modified material.dart import
The import of material.dart is modified to hide the Badge function, resolving a conflict between material.dart and badges.dart that caused errors during app building. Bug-AGL: SPEC-5013 Change-Id: I26bc6ba9a8469e33946d706d24ca68385d467a8d Signed-off-by: Anuj-S62 <anuj603362@gmail.com>
-rw-r--r--lib/musicPage.dart2
-rw-r--r--lib/nomusic.dart2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/musicPage.dart b/lib/musicPage.dart
index ea01a4e..38869d9 100644
--- a/lib/musicPage.dart
+++ b/lib/musicPage.dart
@@ -4,7 +4,7 @@ import 'dart:async';
import 'package:badges/badges.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
-import 'package:flutter/material.dart';
+import 'package:flutter/material.dart' hide Badge;
import 'package:musicplayer/size.dart';
diff --git a/lib/nomusic.dart b/lib/nomusic.dart
index 0898a6a..5280440 100644
--- a/lib/nomusic.dart
+++ b/lib/nomusic.dart
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
import 'package:badges/badges.dart';
-import 'package:flutter/material.dart';
+import 'package:flutter/material.dart' hide Badge;
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:musicplayer/size.dart';