aves/lib/widgets/viewer/entry_viewer_page.dart
2021-01-26 18:31:42 +09:00

32 lines
917 B
Dart

import 'package:aves/model/entry.dart';
import 'package:aves/model/source/collection_lens.dart';
import 'package:aves/widgets/common/providers/media_query_data_provider.dart';
import 'package:aves/widgets/viewer/entry_viewer_stack.dart';
import 'package:flutter/material.dart';
class EntryViewerPage extends StatelessWidget {
static const routeName = '/viewer';
final CollectionLens collection;
final AvesEntry initialEntry;
const EntryViewerPage({
Key key,
this.collection,
this.initialEntry,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return MediaQueryDataProvider(
child: Scaffold(
body: EntryViewerStack(
collection: collection,
initialEntry: initialEntry,
),
backgroundColor: Navigator.canPop(context) ? Colors.transparent : Colors.black,
resizeToAvoidBottomInset: false,
),
);
}
}