initialized Application theme

This commit is contained in:
Mohammad Salameh
2024-02-17 16:27:27 +03:00
parent 16f47f744c
commit 3190361901
98 changed files with 871 additions and 1004 deletions
@@ -0,0 +1,8 @@
import 'package:bloc/bloc.dart';
import 'package:meta/meta.dart';
part 'profile_state.dart';
class ProfileCubit extends Cubit<ProfileState> {
ProfileCubit() : super(ProfileInitial());
}
@@ -0,0 +1,6 @@
part of 'profile_cubit.dart';
@immutable
abstract class ProfileState {}
class ProfileInitial extends ProfileState {}
@@ -1,7 +0,0 @@
import 'package:flutter/material.dart';
import 'profile_state.dart';
class ProfileProvider extends ChangeNotifier {
final state = ProfileState();
}
-6
View File
@@ -1,6 +0,0 @@
class ProfileState {
ProfileState() {
// init some variables
}
}
-18
View File
@@ -1,18 +0,0 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'profile_provider.dart';
class ProfilePage extends StatelessWidget {
const ProfilePage({super.key});
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (BuildContext context) => ProfileProvider(),
builder: (context, child) => const Center(
child: Text('Profile Page'),
),
);
}
}
@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/profile/bloc/profile_cubit.dart';
class ProfileView extends StatelessWidget {
const ProfileView({super.key});
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => ProfileCubit(),
child: BlocBuilder<ProfileCubit, ProfileState>(
builder: (context, state) {
return const Center(
child: Text('Profile Page'),
);
},
),
);
}
}