Skip to content

A simple game where you have match the radom generated number(0-59) with the running timer's current seconds

Notifications You must be signed in to change notification settings

Wannabe-King/Pause_Timer

Repository files navigation

Pause Timer App

Overview

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 Details

Developer: Priyanshu Sidar

Email: [sidarsunita2@gmail.com]

LinkedIn: [(https://www.linkedin.com/in/priyanshu-sidar-639914144/)]

Features

  • Countdown timer with a random number challenge.
  • Tracking of successful attempts and total attempts.
  • Clean code structure and state management.

Requirements

  • Dart: 3.2.6

Getting Started

  1. Clone the repository:

    git clone https://github.com/Wannabe-King/Pause_Timer/
    
  2. Navigate to the project folder:

    cd pause_timer_app
    
  3. Install dependencies:

    flutter pub get
    
  4. Run the app:

    flutter run
    
    

Code Structure

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.

State Management

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.

Developer's Note

This app hasn't been tested on IOS(As I do not own an apple device) so an issue might occur while running.

APK for Android:

https://drive.google.com/file/d/1_4JytrxzK2MTCac7qIO9hnMouMRZGEhD/view?usp=drive_link

Demo

Screenrecorder-2024-02-04-07-18-11-856.mp4
Screenrecorder-2024-02-04-07-19-26-467.mp4

About

A simple game where you have match the radom generated number(0-59) with the running timer's current seconds

Resources

Stars

Watchers

Forks

Packages

No packages published