34 lines
765 B
Dart
34 lines
765 B
Dart
import 'package:flutter/material.dart';
|
|
import "package:photos/models/collection.dart";
|
|
import "package:photos/ui/collections/flex_grid_view.dart";
|
|
|
|
class CollectionListPage extends StatelessWidget {
|
|
final List<Collection>? collections;
|
|
final Widget? appTitle;
|
|
final String tag;
|
|
|
|
const CollectionListPage(
|
|
this.collections, {
|
|
this.appTitle,
|
|
this.tag = "",
|
|
Key? key,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
elevation: 0,
|
|
title: appTitle,
|
|
),
|
|
body: SafeArea(
|
|
child: CollectionsFlexiGridViewWidget(
|
|
collections,
|
|
displayLimitCount: collections?.length ?? 0,
|
|
tag: tag,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|