flutter_custom_creator 1.0.0
flutter_custom_creator: ^1.0.0 copied to clipboard
A custom Flutter project creator.
Flutter Custom App Package #
This package provides a structured foundation for creating custom Flutter applications. It includes configurations, routing, theming, core functionalities, and utility helpers to streamline the development process.
Package Structure #
lib/
├── config/
│ ├── app_helper/
│ │ ├── app_extension.dart
│ │ ├── app_formats.dart
│ │ ├── app_functions.dart
│ │ ├── app_gaps.dart
│ │ └── app_padding.dart
│ ├── router/
│ │ ├── app_router.dart
│ │ └── unknown_route.dart
│ └── theme/
│ ├── dark_theme.dart
│ ├── light_theme.dart
│ └── theme_manager.dart
├── core/
│ ├── network/
│ │ ├── api_provider.dart
│ │ └── app_endpoints.dart
│ └── utils/
│ ├── dialogs.dart
│ ├── logger.dart
│ ├── snack_bar_utils.dart
│ └── validator.dart
|── features/
├── app.dart
├── injection_container.dart
└── main.dart
Features #
- Config: Contains helper functions, routing configurations, and theme management.
- Core: Includes network-related utilities and general-purpose utility functions.
- Features: Houses the main application file, dependency injection setup, and the entry point of the app.
Getting Started #
To use this package in your Flutter project:
-
Add the package to your
pubspec.yaml:dependencies: flutter_custom_app: git: url: https://github.com/flutter-try-catch/flutter_custom_creator ref: main -
Import the package in your Dart code:
import 'package:flutter_custom_app/features/app.dart'; -
Initialize the app using the provided
Appwidget:void main() { runApp(const App()); }
Configuration #
- Modify
app_router.dartto set up your app's navigation structure. - Customize
dark_theme.dartandlight_theme.dartto match your app's design. - Use
app_helperfiles to maintain consistent styling and functionality across your app.
Network #
The core/network directory contains classes for API communication:
api_provider.dart: Handles API requests and responses.app_endpoints.dart: Defines API endpoints used in the app.
Utilities #
The core/utils directory provides common utility functions:
dialogs.dart: Helper methods for displaying dialogs.logger.dart: Logging utility for debugging.snack_bar_utils.dart: Functions for displaying snack bar messages.validator.dart: Input validation helpers.
Dependency Injection #
The injection_container.dart file sets up dependency injection for the app. Modify this file to register and manage your app's dependencies.
Contributing #
Contributions are welcome! Please feel free to submit a Pull Request.