This simple Flutter Counter App is designed to help beginners grasp core Flutter concepts, such as stateful and stateless widgets, and the fundamentals of state management using setState()
.
- Increment Counter: A button press increases the counter value.
- State Management: Demonstrates how to update the UI using
setState()
. - Material Design: Built with Flutterโs Material Design components.
- Ensure Flutter is installed on your system.
- Clone the Repository:
git clone https://github.com/Hifza-Khalid/counter-app.git cd counter-app
- Install Dependencies:
flutter pub get
- Run the App:
flutter run
- main.dart: The entry point of the application.
- widgets: Contains custom widgets for the UI.
- pages: Houses the main screen where counter functionality is implemented.
For detailed code implementation, please refer to the source files.
Use Flutter's hot reload feature to see changes instantly without restarting the app.
This project serves as an excellent introduction to Flutter. Extend the app by adding features like decrement functionality or custom UI enhancements.