This commit is contained in:
parent
7981436374
commit
16ebc51e77
@ -124,6 +124,7 @@ class _DetailViewState extends ConsumerState<DetailView> {
|
||||
|
||||
return Scaffold(
|
||||
endDrawer: EndDrawer(ref: ref),
|
||||
endDrawerEnableOpenDragGesture: false,
|
||||
persistentFooterButtons: mediaState.tag != null
|
||||
? [
|
||||
Center(
|
||||
@ -141,7 +142,6 @@ class _DetailViewState extends ConsumerState<DetailView> {
|
||||
slivers: [
|
||||
SliverAppBar(
|
||||
floating: true,
|
||||
pinned: true,
|
||||
snap: true,
|
||||
centerTitle: true,
|
||||
title: Text('f0ck #${mediaState.mediaItems[_currentIndex].id}'),
|
||||
@ -227,9 +227,6 @@ class _DetailViewState extends ConsumerState<DetailView> {
|
||||
),
|
||||
),
|
||||
],
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
background: Container(color: Colors.transparent),
|
||||
),
|
||||
),
|
||||
SliverPadding(
|
||||
padding: EdgeInsets.zero,
|
||||
|
@ -40,7 +40,7 @@ class _FullScreenMediaViewState extends State<FullScreenMediaView> {
|
||||
child: widget.item.mime.startsWith('image')
|
||||
? InteractiveViewer(
|
||||
minScale: 1.0,
|
||||
maxScale: 6.0,
|
||||
maxScale: 7.0,
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: widget.item.mediaUrl,
|
||||
fit: BoxFit.contain,
|
||||
|
@ -106,7 +106,7 @@ class _MediaGridState extends ConsumerState<MediaGrid> {
|
||||
],
|
||||
),
|
||||
SliverPadding(
|
||||
padding: const EdgeInsets.all(5.0),
|
||||
padding: EdgeInsets.zero,
|
||||
sliver: SliverGrid(
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, index) {
|
||||
@ -136,6 +136,7 @@ class _MediaGridState extends ConsumerState<MediaGrid> {
|
||||
scrollController: _scrollController,
|
||||
),
|
||||
endDrawer: EndDrawer(ref: ref),
|
||||
endDrawerEnableOpenDragGesture: false,
|
||||
persistentFooterButtons: mediaState.tag != null
|
||||
? [
|
||||
Center(
|
||||
|
@ -10,6 +10,12 @@ class EndDrawer extends StatelessWidget {
|
||||
|
||||
const EndDrawer({super.key, required this.ref});
|
||||
|
||||
void _showMsg(String message, BuildContext context) {
|
||||
ScaffoldMessenger.of(context)
|
||||
..removeCurrentSnackBar()
|
||||
..showSnackBar(SnackBar(content: Text(message)));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Drawer(
|
||||
@ -105,14 +111,18 @@ class EndDrawer extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
ListTile(
|
||||
title: const Text('Einstellungen'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
_showMsg('wip', context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text('v${AppVersion.version}'),
|
||||
onTap: () {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('jooong lass das, hier ist nichts'),
|
||||
),
|
||||
);
|
||||
Navigator.pop(context);
|
||||
_showMsg('jooong lass das, hier ist nichts', context);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.1.21+51
|
||||
version: 1.1.22+52
|
||||
|
||||
environment:
|
||||
sdk: ^3.9.0-100.2.beta
|
||||
|
Loading…
x
Reference in New Issue
Block a user