- Singleton Pattern: Ensures a class has only one instance and provides a global point of access to it.
- Lazy Loading: Delays the initialization of an object until it is needed, improving performance and reducing memory usage.
- Caching Data: Stores frequently accessed data in memory for quick retrieval.
- Freezed Package: Simplifies creating immutable classes and union types.
- JsonSerializable Package: Provides easy conversion between Dart objects and JSON data.
Here are the links to the main files in the project:
-
- Data models created using
freezed
andjson_serializable
.
- Data models created using
To leverage the features in this app:
- Singleton Pattern: Use the singleton pattern to manage your instances.
- Lazy Loading: Ensure objects are only created when they are needed.
- Caching Data: Utilize the caching mechanism to store and retrieve frequently accessed data efficiently.
- Freezed: Create immutable data classes easily using
freezed
. - JsonSerializable: Automatically convert between Dart objects and JSON
using
json_serializable
.
-
Clone the repository:
git clone https://github.com/Ahmad-Nour-Haidar/ptc-modeling-in-dart.git
-
Navigate to the project directory:
cd ptc-modeling-in-dart
-
Install dependencies:
flutter pub get
-
Run the application:
flutter run
We welcome contributions to enhance the Pharmageddon app. Here’s how you can help:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Description of the feature"
- Push to the branch:
git push origin feature-branch
- Create a pull request.
Please ensure your pull request adheres to the following guidelines:
- Describe the feature or fix in detail.
- Ensure the code follows the existing style and conventions.
- Include screenshots or demos of the new feature or fix if applicable.
This project is licensed under the MIT License. See the LICENSE file for details.