Getting Started
Get up and running with E-Core in minutes
Getting Started
This guide will help you set up E-Core in your Flutter project.
Prerequisites
- Flutter 3.0 or higher
- Dart 3.0 or higher
Installation
Add E-Core to your pubspec.yaml:
dependencies:
e_core_foundation: ^1.0.0
e_core_state: ^1.0.0
e_core_data: ^1.0.0
e_core_ui: ^1.0.0Basic Setup
- Initialize E-Core in your main function:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Initialize E-Core
await ECore.initialize();
runApp(const MyApp());
}- Wrap your app with the E-Core providers:
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ProviderScope(
child: ECoreApp(
child: MaterialApp.router(
// Your app configuration
),
),
);
}
}