Pakete, Repositories und App-Kategorien suchen

Paketdetailsv2.0.8

isolator

Isolator ist ein Paket, das Ihnen eine einfache Möglichkeit bietet, zweiteilige Zustände mit isoliertem Teil und Frontend-Teil jeder Art zu erstellen - BLoC, MobX, ChangeNotifier und andere

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
123
Likes
84
Pub-Punkte
150

Paket installieren

flutter pub add isolator

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Isolator ist ein Flutter/Dart-Paket, das die Erstellung von zweikomponentigen Zustandsverwaltungssystemen vereinfacht, indem es die isolierte Logik (z. B. BLoC, MobX, ChangeNotifier) von der UI-Schicht trennt. Es ermöglicht eine saubere Architektur durch Entkopplung der Zustandslogik von der Darstellung und fördert Wiederverwendbarkeit und Testbarkeit. Das Paket unterstützt mehrere Zustandsverwöhnungslösungen auf allen wichtigen Plattformen und ist daher ideal für skalierbare Anwendungen. Mit minimalem Setup können Entwickler den Zustand einfach integrieren und strukturiert verwalten.

Anwendungsfälle

  • Wiederverwendbare Zustandslogik erstellen
  • Trennung der Benutzeroberfläche von der Geschäftslogik
  • Testen von Zustandskomponenten isoliert
  • Unterstützung mehrerer Zustandsverwaltungs-Muster
  • Modulare App-Architekturen erstellen
  • Zustandsteilung zwischen Bildschirmen vereinfachen

Hauptmerkmale

  • Zweiteilige Zustandsaufteilung
  • Unterstützung für BLoC, MobX, ChangeNotifier
  • Plattformübergreifende Kompatibilität
  • Einfache Integration mit bestehenden State-Manager
  • Leichtgewichtig und minimales Boilerplate
  • Eingebaute Testunterstützung

Geeignet für

  • Entwickler, die BLoC/MobX/ChangeNotifier verwenden
  • Teams, die saubere Architektur übernehmen
  • Projekte, die testbare Zustandslogik erfordern
  • Apps mit komplexen Zustandsanforderungen
  • Flutter-Entwickler, die Modularität suchen

Hinweise

  • Erfordert Verständnis von State-Management-Patterns
  • Am besten geeignet für mittelgroße bis große Apps
  • Kann für einfache Anwendungsfälle zusätzliche Komplexität hinzufügen
  • Beschränkte Dokumentation verfügbar
  • Kein vollständiger Ersatz für spezialisierte Zustandsbibliotheken

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

License Pub

Isolator

Do you ever want to use isolates in your app, but think, that it is very complex? Or, maybe, you feel that your app has some lugs when you open some screen, which needs data from a backend? With the Isolator, all these problems go out. Have an always stable frame rate at 60 / 120 per second. Don't have any problems with UI-thread junks. And feel happy.


Demo of app, which using Isolator.

Source code of this app.


Description

Isolator is a package, which offer to you a simple way for creating two-component states with isolated part, named Backend and Frontend part in UI-isolate of any kind (BLoC, MobX, ChangeNotifier, and many others).

With Isolator you can use all benefits of isolate API without boilerplate code.

Also, Isolator works with Flutter Web, but without multi-threading (because Dart itself has no Web support for isolate API).

Main concepts

Frontend

Frontend - this is the first part of your two-classes logic component. It can use any state management as a base to update your UI: ChangeNotifier, Mobx, Bloc, and any another.

Frontend's mission is in calling Backend's methods, which must be registered through whenEventCome(SomeEvent).run(_someBackendMethod) method in Backend.

Also, Frontend can register its own message handlers in the same manner: whenEventCome(SomeEvent).run(someFrontendMethod) to react on Backend's messages.

And also you can subscribe on your Frontend to get notifications about new messages from the corresponding Backend.

Backend

Backend - this is the second part of the two-classes logic component. All Backend's will run in separated isolate and doesn't affect to UI-isolate. That means, that if you have CPU-heavy logic, big-data parsing or manipulating - you can do this in your Backend and your interface will not drop any frame at all!

Interactor

Interactor - it is an additional part of Backend, which is used to communicate between any Backends without affecting UI-isolate.

Other

You can run each Backend in its separate isolate, or you can run part of Backends in one isolate and another part in another isolate (with pool param).

If you want to know all possibilities of this package, please - investigate this project, which I made to show how Isolator can be used. Also, you can research the tests for the Isolator itself, which have examples for almost all API.

Articles about Isolator

And finally - at the moment I am writing several articles about using my Open Source packages in real projects and when they will be ready - I will attach links to this readme in order to explain in as much detail as possible how to get the most advantages out of this library and from others too.

Schema of interaction

Schema

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.