Skip to content

Commit

Permalink
Made artist screen tab scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
anandnet committed Aug 19, 2024
1 parent 9dc079f commit caaed62
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 35 deletions.
2 changes: 1 addition & 1 deletion lib/ui/player/components/albumart_lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AlbumArtNLyrics extends StatelessWidget {
@override
Widget build(BuildContext context) {
final PlayerController playerController = Get.find<PlayerController>();
final size = MediaQuery.of(context).size;
//final size = MediaQuery.of(context).size;
//double playerArtImageSize = size.width - ((size.height < 750) ? 90 : 60);
return Obx(() => playerController.currentSong.value != null
? Stack(
Expand Down
76 changes: 42 additions & 34 deletions lib/ui/screens/Artists/artist_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,43 +60,51 @@ class ArtistScreen extends StatelessWidget {
artistScreenController: artistScreenController, tag: tag)
: Row(
children: [
Obx(
() => NavigationRail(
onDestinationSelected:
artistScreenController.onDestinationSelected,
minWidth: 60,
destinations: [
"about".tr,
"songs".tr,
"videos".tr,
"albums".tr,
"singles".tr
].map((e) => railDestination(e)).toList(),
leading: Column(
children: [
SizedBox(
height: context.isLandscape ? 20.0 : 45.0,
),
IconButton(
icon: Icon(
Icons.arrow_back_ios_new_rounded,
color:
Theme.of(context).textTheme.titleMedium!.color,
Align(
alignment: Alignment.topCenter,
child: SingleChildScrollView(
padding: const EdgeInsets.only(bottom: 80),
child: IntrinsicHeight(
child: Obx(
() => NavigationRail(
onDestinationSelected:
artistScreenController.onDestinationSelected,
minWidth: 60,
destinations: [
"about".tr,
"songs".tr,
"videos".tr,
"albums".tr,
"singles".tr
].map((e) => railDestination(e)).toList(),
leading: Column(
children: [
SizedBox(
height: context.isLandscape ? 20.0 : 45.0,
),
IconButton(
icon: Icon(
Icons.arrow_back_ios_new_rounded,
color:
Theme.of(context).textTheme.titleMedium!.color,
),
onPressed: () {
Get.nestedKey(ScreenNavigationSetup.id)!
.currentState!
.pop();
},
),
const SizedBox(
height: 10,
),
],
),
onPressed: () {
Get.nestedKey(ScreenNavigationSetup.id)!
.currentState!
.pop();
},
),
const SizedBox(
height: 10,
labelType: NavigationRailLabelType.all,
selectedIndex:
artistScreenController.navigationRailCurrentIndex.value,
),
],
),
),
labelType: NavigationRailLabelType.all,
selectedIndex:
artistScreenController.navigationRailCurrentIndex.value,
),
),
Expanded(
Expand Down

0 comments on commit caaed62

Please sign in to comment.