mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: fix genre playlist title bar
This commit is contained in:
parent
0f6d0a44ea
commit
ec9d9d7d7e
@ -14,6 +14,7 @@ import 'package:spotube/components/shared/waypoint.dart';
|
|||||||
import 'package:spotube/extensions/constrains.dart';
|
import 'package:spotube/extensions/constrains.dart';
|
||||||
import 'package:spotube/services/queries/queries.dart';
|
import 'package:spotube/services/queries/queries.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:flutter_desktop_tools/flutter_desktop_tools.dart';
|
||||||
|
|
||||||
class GenrePlaylistsPage extends HookConsumerWidget {
|
class GenrePlaylistsPage extends HookConsumerWidget {
|
||||||
final Category category;
|
final Category category;
|
||||||
@ -42,17 +43,19 @@ class GenrePlaylistsPage extends HookConsumerWidget {
|
|||||||
final scrollController = useScrollController();
|
final scrollController = useScrollController();
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const PageWindowTitleBar(
|
appBar: DesktopTools.platform.isDesktop
|
||||||
leading: BackButton(color: Colors.white),
|
? const PageWindowTitleBar(
|
||||||
backgroundColor: Colors.transparent,
|
leading: BackButton(color: Colors.white),
|
||||||
foregroundColor: Colors.white,
|
backgroundColor: Colors.transparent,
|
||||||
),
|
foregroundColor: Colors.white,
|
||||||
|
)
|
||||||
|
: null,
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: CustomScrollView(
|
body: CustomScrollView(
|
||||||
controller: scrollController,
|
controller: scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverAppBar(
|
SliverAppBar(
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: DesktopTools.platform.isMobile,
|
||||||
expandedHeight: mediaQuery.mdAndDown ? 200 : 150,
|
expandedHeight: mediaQuery.mdAndDown ? 200 : 150,
|
||||||
pinned: true,
|
pinned: true,
|
||||||
floating: false,
|
floating: false,
|
||||||
@ -77,7 +80,7 @@ class GenrePlaylistsPage extends HookConsumerWidget {
|
|||||||
child: const ColoredBox(color: Colors.transparent),
|
child: const ColoredBox(color: Colors.transparent),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
centerTitle: true,
|
centerTitle: DesktopTools.platform.isDesktop,
|
||||||
title: Text(
|
title: Text(
|
||||||
category.name!,
|
category.name!,
|
||||||
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
||||||
|
Loading…
Reference in New Issue
Block a user