2024-10-21 10:22:25 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
|
|
import 'package:lightmeter/screens/film_edit/bloc_film_edit.dart';
|
|
|
|
import 'package:lightmeter/screens/film_edit/screen_film_edit.dart';
|
|
|
|
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
|
|
|
|
2024-10-24 10:33:37 +00:00
|
|
|
class FilmEditArgs {
|
|
|
|
final FilmExponential film;
|
|
|
|
|
|
|
|
const FilmEditArgs({required this.film});
|
|
|
|
}
|
|
|
|
|
2024-10-21 10:22:25 +00:00
|
|
|
class FilmEditFlow extends StatelessWidget {
|
2024-10-24 10:33:37 +00:00
|
|
|
final FilmEditArgs args;
|
2024-10-21 10:22:25 +00:00
|
|
|
|
2024-10-24 10:33:37 +00:00
|
|
|
const FilmEditFlow({required this.args, super.key});
|
2024-10-21 10:22:25 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BlocProvider(
|
2024-10-24 10:33:37 +00:00
|
|
|
create: (_) => FilmEditBloc(args.film),
|
2024-10-21 10:22:25 +00:00
|
|
|
child: const FilmEditScreen(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|