alghwalbi_core 1.0.6 copy "alghwalbi_core: ^1.0.6" to clipboard
alghwalbi_core: ^1.0.6 copied to clipboard

alghwalbi_core is a Flutter package designed to simplify state management and provide commonly used components and services for Flutter applications.

alghwalbi_core #

alghwalbi_core is a Flutter package designed to simplify state management and provide commonly used components and services for Flutter applications. This package follows the MVC (Model-View-Controller) architecture, making it easy to structure and manage your Flutter projects.

Note: This package is primarily intended for personal use, but feel free to use it in your projects.

Features #

  • MVC State Management: Provides an easy-to-use MVC pattern for managing the state of your Flutter application.
  • Common Components: Includes commonly used UI components to streamline development.
  • Services: Offers services commonly needed in Flutter applications, such as API handling, database management, and more.

Installation #

To use alghwalbi_core in your Flutter project, add it to your pubspec.yaml file:

dependencies:
  alghwalbi_core: <Latest-version>

the steps to use MVC for each module #

  • create controller extend CoreController
  • create model extends BaseModel
  • use CoreStatefulWidget<Controller> instead of StatefulWidget
  • use CoreState<Statfull,Controller> instead of State<Statfull>
  • implement createController on your state class
  • modules

    • employee

      • widgets
        • employee_cart.widget.dart
      • employee.controller.dart
      • employee.model.dart
      • employee_form.page.dart
      • employee_list.page.dart
      • employee.service.dart
    • department

  • widgets

    • text_filed.widget.dart
  • services

    • navigator.service.dart
    • config.service.dart
    • notification.service.dart
    • init.service.dart

1- The file name shall end with .[TYPE] like config.service.dart

2- The file name shall separate the multi words name by underscore like employee_list.page.dart

3- All file/folders shall be lower case letters

4- The name of service function like addNewOrder() The Controller Function of this service must be onAddNewOrder()

1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

alghwalbi_core is a Flutter package designed to simplify state management and provide commonly used components and services for Flutter applications.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

auto_animated, beamer, cached_network_image, flutter, flutter_markdown, http, http_parser, image_picker, intl, lifecycle, package_info_plus, path, path_provider, rive, shared_preferences

More

Packages that depend on alghwalbi_core