step_timer 1.0.2
step_timer: ^1.0.2 copied to clipboard
A customizable Flutter timer widget package that lets you create a step timer with start, pause, resume, reset, and complete actions.
import 'package:flutter/material.dart';
import 'timer_page.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Step Timer Example',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
darkTheme: ThemeData.dark().copyWith(
primaryColor: Colors.orange,
scaffoldBackgroundColor: Colors.black,
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: Colors.orange,
),
),
themeMode: ThemeMode.dark,
home: const TimerPage(),
);
}
}