Skip to content

Commit

Permalink
search screen ui bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandhuA committed Nov 11, 2024
1 parent 0eea858 commit b180745
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
1 change: 1 addition & 0 deletions lib/core/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,7 @@ class AppColors {
static const Color pink = Color.fromARGB(255, 255, 0, 85);
static const Color black = Colors.black;
static const Color white = Colors.white;
static const Color transparent = Colors.transparent;

// app theam color list
static const List<Color> colorList = [
Expand Down
10 changes: 8 additions & 2 deletions lib/core/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 4,10 @@ import 'package:musiq/core/colors.dart';
class ThemeClass {
static ThemeData lightTheme = ThemeData.light().copyWith(
brightness: Brightness.light,
appBarTheme: const AppBarTheme(color: AppColors.white),
appBarTheme: const AppBarTheme(
color: AppColors.transparent,
scrolledUnderElevation: 0,
),
scaffoldBackgroundColor: AppColors.white,
drawerTheme: const DrawerThemeData(
backgroundColor: Color.fromARGB(200, 255, 255, 255)),
Expand Down Expand Up @@ -46,7 49,10 @@ class ThemeClass {

static ThemeData darkTheme = ThemeData.dark().copyWith(
brightness: Brightness.dark,
appBarTheme: const AppBarTheme(color: AppColors.black),
appBarTheme: const AppBarTheme(
color: AppColors.transparent,
scrolledUnderElevation: 0,
),
scaffoldBackgroundColor: AppColors.black,
drawerTheme:
const DrawerThemeData(backgroundColor: Color.fromARGB(200, 0, 0, 0)),
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/commanWidgets/custom_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 108,7 @@ class SearchAppBarState extends State<SearchAppBar> {
},
),
PopupMenuButton<SortOption>(

icon: Icon(
Icons.filter_list_rounded,
),
Expand Down
24 changes: 15 additions & 9 deletions lib/presentation/screens/search_screen/search_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 46,21 @@ class _NewSearchScreenState extends State<NewSearchScreen> {
),
),
AppSpacing.height20,
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
_buildButton("All", theme),
_buildButton("Song", theme),
_buildButton("Album", theme),
_buildButton("Artist", theme),
_buildButton("PlayList", theme),
],
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
_buildButton("All", theme),
AppSpacing.width10,
_buildButton("Song", theme),
AppSpacing.width10,
_buildButton("Album", theme),
AppSpacing.width10,
_buildButton("Artist", theme),
AppSpacing.width10,
_buildButton("PlayList", theme),
],
),
),
AppSpacing.height20,
Expanded(
Expand Down

0 comments on commit b180745

Please sign in to comment.