diff --git a/lib/info_page.dart b/lib/info_page.dart index 63688f2..51909a9 100644 --- a/lib/info_page.dart +++ b/lib/info_page.dart @@ -105,14 +105,10 @@ class InfoPageState extends State { body: SafeArea( child: CustomScrollView( slivers: [ - const SliverPadding( - padding: EdgeInsets.only(left: 15, top: 15), - sliver: SliverToBoxAdapter( - child: Align( - alignment: Alignment.topLeft, - child: BackButton(), - ), - ), + SliverAppBar( + floating: true, + title: Text(widget.data.title), + //leading: BackButton(), ), SliverPadding( padding: const EdgeInsets.all(15), diff --git a/lib/main.dart b/lib/main.dart index 476c4c8..6080f5d 100755 --- a/lib/main.dart +++ b/lib/main.dart @@ -57,6 +57,11 @@ void main() async { navigatorKey: _shellkey, builder: (context, state, child) => Scaffold( body: child, + floatingActionButton: FloatingActionButton( + onPressed: () { + PrimaryScrollController.of(context).jumpTo(0); + }, + ), bottomNavigationBar: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ diff --git a/lib/media/media.dart b/lib/media/media.dart index 6af5d0e..dd4fc6c 100644 --- a/lib/media/media.dart +++ b/lib/media/media.dart @@ -239,6 +239,7 @@ class AniPageState extends State { return true; }, child: CustomScrollView( + primary: true, slivers: [ SliverToBoxAdapter( child: Center( diff --git a/lib/widgets/grid.dart b/lib/widgets/grid.dart index aaef898..e969f95 100644 --- a/lib/widgets/grid.dart +++ b/lib/widgets/grid.dart @@ -29,15 +29,17 @@ class GridState extends State with AutomaticKeepAliveClientMixin { childAspectRatio: 4 / 6, maxCrossAxisExtent: 280, ), - delegate: SliverChildBuilderDelegate(childCount: widget.data.length, - (context, index) { - return Padding( - padding: const EdgeInsets.all(10), - child: Block( - data: widget.data[index], - ), - ); - }), + delegate: SliverChildBuilderDelegate( + childCount: widget.data.length, + (context, index) { + return Padding( + padding: const EdgeInsets.all(10), + child: Block( + data: widget.data[index], + ), + ); + }, + ), ); } } diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index 852fa1a..ab5e00b 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -4,5 +4,7 @@ com.apple.security.app-sandbox + com.apple.security.network.client +