Skip to content

Commit

Permalink
chore: fix genre playlist title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Dec 30, 2023
1 parent 0f6d0a4 commit ec9d9d7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/pages/home/genres/genre_playlists.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:spotube/components/shared/waypoint.dart';
import 'package:spotube/extensions/constrains.dart';
import 'package:spotube/services/queries/queries.dart';
import 'package:collection/collection.dart';
import 'package:flutter_desktop_tools/flutter_desktop_tools.dart';

class GenrePlaylistsPage extends HookConsumerWidget {
final Category category;
Expand Down Expand Up @@ -42,17 +43,19 @@ class GenrePlaylistsPage extends HookConsumerWidget {
final scrollController = useScrollController();

return Scaffold(
appBar: const PageWindowTitleBar(
leading: BackButton(color: Colors.white),
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
),
appBar: DesktopTools.platform.isDesktop
? const PageWindowTitleBar(
leading: BackButton(color: Colors.white),
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
)
: null,
extendBodyBehindAppBar: true,
body: CustomScrollView(
controller: scrollController,
slivers: [
SliverAppBar(
automaticallyImplyLeading: false,
automaticallyImplyLeading: DesktopTools.platform.isMobile,
expandedHeight: mediaQuery.mdAndDown ? 200 : 150,
pinned: true,
floating: false,
Expand All @@ -77,7 +80,7 @@ class GenrePlaylistsPage extends HookConsumerWidget {
child: const ColoredBox(color: Colors.transparent),
),
),
centerTitle: true,
centerTitle: DesktopTools.platform.isDesktop,
title: Text(
category.name!,
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
Expand Down

0 comments on commit ec9d9d7

Please sign in to comment.