Giter VIP home page Giter VIP logo

pause_timer's Introduction

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: [[email protected]]

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

pause_timer's People

Contributors

wannabe-king avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.