Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abdulawalarif/block_with_cubit

This project is perfect for beginners looking to understand state management in Flutter using Cubit and how to build a basic dynamic UI with state-driven behavior.
https://github.com/abdulawalarif/block_with_cubit

android app apps bloc cubit dart flutter flutter-apps flutter-examples ios mobile

Last synced: 15 days ago
JSON representation

This project is perfect for beginners looking to understand state management in Flutter using Cubit and how to build a basic dynamic UI with state-driven behavior.

Awesome Lists containing this project

README

        

# Random Name Picker App

## A Flutter project to pick a random name from a lazy list using Cubit and Bloc. This project demonstrates a simple implementation of state management and dynamic UI updates with Stream.

## Features
* Picks a random String from a list.
* Uses of Cubit in state management with bloc.
* Updates the UI with a new random name when a button is pressed.

Demo of this application

## Run Locally

Clone the project

```bash
git clone https://github.com/abdulawalarif/block_with_cubit.git
```

Go to the project directory

```bash
cd block_with_cubit
```

Install dependencies

```bash
flutter pub get
```

Connect a physical device or start a virtual device on your machine

```bash
flutter run
```

## How to tweak this project for your own uses

This project can be a great starting point for using Cubit in your Flutter apps. You can easily modify the list of names or extend the functionality by adding features like persisting selected names or integrating more complex state management logic.

## Found a bug?

If you found an issue or would like to submit an improvement to this project,
please submit an issue using the issues tab above. If you would like to submit a PR with a fix, reference the issue you created!

## Author

- [@abdulawalarif](https://github.com/abdulawalarif)

## License

[MIT](https://choosealicense.com/licenses/mit/)