@@ -20,9 +20,7 @@ class NewsSongs extends StatelessWidget {
2020 child: BlocBuilder <NewsSongsCubit , NewsSongsState >(
2121 builder: (context, state) {
2222 if (state is NewsSongsLoading ) {
23- return Container (
24- alignment: Alignment .center,
25- child: const CircularProgressIndicator ());
23+ return Container (alignment: Alignment .center, child: const CircularProgressIndicator ());
2624 }
2725
2826 if (state is NewsSongsLoaded ) {
@@ -77,15 +75,12 @@ class NewsSongs extends StatelessWidget {
7775 width: 30 ,
7876 transform: Matrix4 .translationValues (- 10 , 10 , 0 ),
7977 decoration: BoxDecoration (
80- shape: BoxShape .circle,
81- color: context.isDarkMode
82- ? AppColors .darkGrey
83- : const Color (0xffE6E6E6 )),
78+ shape: BoxShape .circle,
79+ color: context.isDarkMode ? AppColors .darkGrey : const Color (0xffE6E6E6 ),
80+ ),
8481 child: Icon (
8582 Icons .play_arrow_rounded,
86- color: context.isDarkMode
87- ? const Color (0xff959595 )
88- : const Color (0xff555555 ),
83+ color: context.isDarkMode ? const Color (0xff959595 ) : const Color (0xff555555 ),
8984 ),
9085 ),
9186 ),
@@ -112,8 +107,7 @@ class NewsSongs extends StatelessWidget {
112107 padding: const EdgeInsets .only (left: 6.0 ),
113108 child: Text (
114109 songs[index].artist,
115- style: const TextStyle (
116- fontWeight: FontWeight .w400, fontSize: 12 ),
110+ style: const TextStyle (fontWeight: FontWeight .w400, fontSize: 12 ),
117111 ),
118112 )
119113 ],
0 commit comments