Skip to content

Commit

Permalink
macos network?
Browse files Browse the repository at this point in the history
  • Loading branch information
femalemonkeyman committed May 22, 2023
1 parent 792dc0e commit 241692d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
12 changes: 4 additions & 8 deletions lib/info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,10 @@ class InfoPageState extends State<InfoPage> {
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),
Expand Down
5 changes: 5 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions lib/media/media.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ class AniPageState extends State<AniPage> {
return true;
},
child: CustomScrollView(
primary: true,
slivers: [
SliverToBoxAdapter(
child: Center(
Expand Down
20 changes: 11 additions & 9 deletions lib/widgets/grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ class GridState extends State<Grid> 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],
),
);
},
),
);
}
}
2 changes: 2 additions & 0 deletions macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

0 comments on commit 241692d

Please sign in to comment.