43 lines
1.4 KiB
Dart
43 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:tanami_app/features/deleteAccount/presentation/bloc/text_bloc.dart';
|
|
import 'package:tanami_app/features/deleteAccount/presentation/pages/delete_account_layout.dart';
|
|
|
|
import '../../../../core/styles/app_color.dart';
|
|
import '../../../../core/styles/app_text.dart';
|
|
import '../../../../shared/components/appbar_widget.dart';
|
|
import '../../../../shared/components/bloc/checkbox/checkbox_bloc.dart';
|
|
import '../bloc/delete_account_bloc.dart';
|
|
|
|
class DeleteAccountScreen extends StatelessWidget {
|
|
const DeleteAccountScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColor.plainWhite,
|
|
appBar: const AppBarWidget(
|
|
height: 75,
|
|
titleTxt: AppText.deleteAccountText,
|
|
),
|
|
body: MultiBlocProvider(
|
|
providers: [
|
|
BlocProvider(
|
|
// Create an instance of the OnboardingBloc
|
|
create: (context) => DeleteAccountBloc(),
|
|
),
|
|
BlocProvider(
|
|
// Create an instance of the OnboardingBloc
|
|
create: (context) => CheckboxBloc(),
|
|
),
|
|
BlocProvider(
|
|
// Create an instance of the OnboardingBloc
|
|
create: (context) => TextBloc(350),
|
|
),
|
|
],
|
|
child: const DeleteAccountLayout(),
|
|
),
|
|
);
|
|
}
|
|
}
|