gallery_picker/lib/user_widgets/album_medias.dart

28 lines
701 B
Dart
Raw Normal View History

2022-12-29 08:45:28 +03:00
import 'package:flutter/material.dart';
import '/models/gallery_album.dart';
import 'date_category_view.dart';
// ignore: must_be_immutable
class AlbumMediasView extends StatelessWidget {
2022-12-30 05:18:18 +03:00
final TextStyle? textStyle;
const AlbumMediasView(
{super.key, required this.galleryAlbum, this.textStyle});
final GalleryAlbum galleryAlbum;
2022-12-29 08:45:28 +03:00
@override
Widget build(BuildContext context) {
return Stack(
children: [
ListView(
children: [
for (var category in galleryAlbum.dateCategories)
DateCategoryWiew(
category: category,
textStyle: textStyle,
),
],
),
],
);
}
}