release_schedule/lib/view/movie_manager_list.dart

24 lines
652 B
Dart
Raw Normal View History

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