This Flutter application implements a simple "Pause Timer" game where users need to stop a countdown timer when it matches a randomly generated number. The app uses clear state management and follows the repository pattern for storing and retrieving data.
Developer: Priyanshu Sidar
Email: [sidarsunita2@gmail.com]
LinkedIn: [(https://www.linkedin.com/in/priyanshu-sidar-639914144/)]
- Countdown timer with a random number challenge.
- Tracking of successful attempts and total attempts.
- Clean code structure and state management.
- Dart: 3.2.6
-
Clone the repository:
git clone https://github.com/Wannabe-King/Pause_Timer/
-
Navigate to the project folder:
cd pause_timer_app
-
Install dependencies:
flutter pub get
-
Run the app:
flutter run
The code is organized into different files for better modularity:
- main.dart: Entry point of the application.
- home.dart: UI components and structure for the main screen.
- button_widget.dart & button_builder.dart: Widget for the Start/Stop button.
- current_seconds_widget.dart: Widget for displaying the current seconds.
- random_number_widget.dart: Widget for displaying the random number.
- result_widget.dart: Widget for displaying the result message.
- timer_widget.dart: Widget for displaying the countdown timer.
The state of the application is managed by the AppRepository class, which extends ChangeNotifier. It handles the countdown timer, random number generation, result message, and scorekeeping.
This app hasn't been tested on IOS(As I do not own an apple device) so an issue might occur while running.
https://drive.google.com/file/d/1_4JytrxzK2MTCac7qIO9hnMouMRZGEhD/view?usp=drive_link