A simple and fun Flutter app that generates random background and text colors with every button press. Designed to explore the use of external packages like random_color and google_fonts from pub.dev.
- 🎲 Tap a button to generate new random color combinations.
- 🎨 Dynamic background and text color updates.
- ✍️ Beautiful Google Fonts for a playful look.
- 🌈 Lightweight and responsive UI.
| Package | Description |
|---|---|
random_color |
Generate random colors easily. |
google_fonts |
Access to hundreds of custom fonts. |
- Clone the repository:
git clone https://github.com/your-username/color-generator-flutter.git
cd color-generator-flutter- Get dependencies:
flutter pub get- Run the app:
flutter runlib/
└── main.dart # Main app entry point
pubspec.yaml # Dependencies and asset
---
## 📚 Learning Objectives
This project demonstrates how to:
* Integrate **third-party packages** from pub.dev.
* Use **stateful widgets** and `setState()` for UI updates.
* Customize fonts and theming.
* Apply basic **UI/UX principles** in a fun context.
---