https://github.com/flutter-news-app-full-source-code/core
The foundational shared library for the Flutter News App Full Source Code Toolkit.
https://github.com/flutter-news-app-full-source-code/core
Last synced: 4 months ago
JSON representation
The foundational shared library for the Flutter News App Full Source Code Toolkit.
- Host: GitHub
- URL: https://github.com/flutter-news-app-full-source-code/core
- Owner: flutter-news-app-full-source-code
- License: other
- Created: 2025-03-10T17:30:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-30T11:28:03.000Z (4 months ago)
- Last Synced: 2026-02-08T08:55:28.031Z (4 months ago)
- Language: Dart
- Homepage:
- Size: 1.81 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Core Package
The core data models and utilities for the Flutter News App Toolkit.
This `core` package serves as the foundational shared library for the **Flutter News App Full Source Code Toolkit**. It defines the common language and data structures—including models for news content, user data, and remote configurations—that ensure consistency and accelerate development across the Flutter mobile app, web dashboard, and Dart Frog backend API.
## 📦 Core Components
This package provides a centralized and version-controlled set of shared code
artifacts, categorized as follows:
* **Data Models:** A comprehensive suite of immutable, serializable Dart
classes that represent all data entities within the ecosystem. This
includes everything from core content (`Headline`, `Source`) to user data
(`User`) and remote configurations (`RemoteConfig`). These models act as
the strict data contract between the clients and the backend.
* **Enumerations:** A collection of strongly-typed enums that define
controlled vocabularies for application states, types, and categories
(e.g., `ContentStatus`, `UserRole`, `RewardType`). This eliminates the use
of "magic strings" and ensures compile-time safety.
* **Utilities & Exceptions:** Common helper functions (e.g.,
`DateTimeConverter`) and a standardized hierarchy of `HttpException`
classes. This ensures consistent error handling and data serialization
across all packages.
* **Test Fixtures:** A rich set of predefined sample data for all core
models. This accelerates unit and integration testing by providing a
consistent and realistic dataset for developers working on any part of the
system.
## 🔑 Licensing
This source code is licensed for commercial use and is provided for local evaluation. A **Lifetime Commercial License** is required for any production or public-facing application.
Please visit the main [Flutter News App Full Source Code Toolkit](https://github.com/flutter-news-app-full-source-code) organization page to review the full license terms and to purchase.