Skip to content

Lab № 6#6

Merged
Art-Invis merged 17 commits into
mainfrom
Laba-6
Apr 6, 2026
Merged

Lab № 6#6
Art-Invis merged 17 commits into
mainfrom
Laba-6

Conversation

@Art-Invis
Copy link
Copy Markdown
Owner

@Art-Invis Art-Invis commented Apr 3, 2026

Updated Demo of the IoT App for Lab 6 ⤵️
[In progress...]

🛠 Architecture Refactoring (BLoC/Cubit):

  • Zero UI Alteration: As requested, the User Interface remains 100% identical to Lab 5. All visual elements, animations, and layouts were strictly preserved.
  • Complete State Management Migration: Removed standard Provider and ChangeNotifier. The entire application logic is now powered by flutter_bloc.
  • Separation of Concerns: Implemented independent Cubits for distinct business domains:
    • AuthCubit: Handles login, registration, and offline token validation.
    • DeviceCubit: Manages cloud fetching and local caching of IoT nodes.
    • ProfileCubit: Controls user profile data and account deletion.
    • DetailsCubit: Manages individual sensor updates and hardware IP modifications.
    • MqttCubit: Completely rewritten real-time telemetry stream and hardware lock policies using Cubit states.
  • Enhanced Predictability: Replaced chaotic callbacks with strict BlocBuilder and BlocConsumer widgets, making UI rebuilds strictly dependent on defined state classes (e.g., DeviceLoading, DeviceLoaded, DeviceError).

@Art-Invis Art-Invis merged commit 1512a9c into main Apr 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant