release_schedule/lib/view/movie_manager_list.dart

26 lines
775 B
Dart
Raw Normal View History

2023-11-08 14:43:59 +01:00
import 'package:flutter/material.dart';
2024-01-08 12:57:36 +01:00
import 'package:release_schedule/model/movie.dart';
2023-11-08 14:43:59 +01:00
import 'package:release_schedule/model/movie_manager.dart';
import 'package:release_schedule/view/movie_list.dart';
class MovieManagerList extends StatelessWidget {
final MovieManager manager;
2024-01-08 12:57:36 +01:00
final bool Function(MovieData)? filter;
const MovieManagerList(this.manager, {this.filter, super.key});
2023-11-08 14:43:59 +01:00
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
animation: manager,
builder: (context, child) {
return Column(
children: [
manager.loading ? const LinearProgressIndicator() : Container(),
2024-01-08 12:57:36 +01:00
Expanded(child: MovieList(manager.movies, filter: filter))
2023-11-08 14:43:59 +01:00
],
);
},
);
}
}