mirrored_repositories/Expenses_Tracker_App/lib/screens/add_expense
// import 'package:expenses_tracker/bloc/create_expense_bloc/create_expense_bloc.dart';
// import 'package:expenses_tracker/bloc/get_categories_bloc/get_categories_bloc.dart';
// import 'package:expenses_tracker/screens/add_expense/widgets/add_expense_form.dart';
// import 'package:expenses_tracker/utils/constants/sizes.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter_bloc/flutter_bloc.dart';

// class AddExpense extends StatefulWidget {
//   const AddExpense({super.key});

//   @override
//   State<AddExpense> createState() => _AddExpenseState();
// }

// class _AddExpenseState extends State<AddExpense> {
//   bool isLoading = false;

//   @override
//   Widget build(BuildContext context) {
//     return BlocListener<CreateExpenseBloc, CreateExpenseState>(
//       listener: (context, state) {
//         if (state is CreateExpenseSuccess) {
//         } else if (state is CreateExpenseLoading) {
//           setState(() {
//             isLoading = true;
//           });
//         }
//       },
//       child: GestureDetector(
//         // TextField dışında bir yere bastığımda hem imleç gider hem de klavye
//         onTap: () => FocusScope.of(context).unfocus(),
//         child: Scaffold(
//           appBar: AppBar(),
//           body: BlocBuilder<GetCategoriesBloc, GetCategoriesState>(
//             builder: (context, state) {
//               if (state is GetCategoriesSuccess) {
//                 return const Padding(
//                   padding: EdgeInsets.all(ESizes.lg),
//                   child: AddExpenseForm(),
//                 );
//               } else {
//                 return const Center(child: CircularProgressIndicator());
//               }
//             },
//           ),
//         ),
//       ),
//     );
//   }
// }
