https://github.com/abdo-essam/stopwatchapp
https://github.com/abdo-essam/stopwatchapp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/abdo-essam/stopwatchapp
- Owner: abdo-essam
- Created: 2024-10-12T12:25:33.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-12T12:38:40.000Z (over 1 year ago)
- Last Synced: 2025-01-22T05:41:22.490Z (over 1 year ago)
- Language: Kotlin
- Size: 259 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stopwatch App ⏱️
A simple stopwatch application built using **Jetpack Compose** in **Kotlin**. The app tracks time in milliseconds, allowing users to start, pause, resume, and reset the stopwatch, and displays the formatted time on the screen.
## Features
- **Start/Resume Functionality**:
- Start the stopwatch, and if paused, the button toggles to "Resume" to continue tracking time.
- **Pause and Reset**:
- Pause the stopwatch at any moment and reset it back to `00:00:000`.
- **Live Time Display**:
- Time is formatted and updated in real-time while the stopwatch is running.
- **Lifecycle Awareness**:
- Uses a `ViewModel` to handle stopwatch state, ensuring state persistence across configuration changes like screen rotations.
- **Material 3 Design**:
- The UI is styled with Material Design 3 for a modern and responsive look.
## Tech Stack
- **Kotlin**
- **Jetpack Compose**
- **Coroutines** for managing background tasks
- **ViewModel** for state management
## Screenshots
## How to Run
To run the app locally, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/your-username/stopwatch-app.git