prayer_timer 1.0.1
prayer_timer: ^1.0.1 copied to clipboard
A Flutter package to display a customizable circular prayer time timer with progress bar for Islamic prayer times, supporting custom APIs and local storage.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:prayer_timer/prayer_timer.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text('নামাজের সময় টাইমার'),
centerTitle: true,
),
body: PrayerTimer(
apiUrl: 'https://api.aladhan.com/v1/timingsByCity?city=Dhaka&country=Bangladesh&method=2',
city: 'Dhaka',
country: 'Bangladesh',
method: 2,
progressBarSize: 250.0, // Custom progress bar size
progressBarColor: Colors.blue, // Custom progress bar color
progressBarBackgroundColor: Colors.grey[200]!, // Custom background color
fontColor: Colors.deepPurple, // Custom font color
),
),
theme: ThemeData(
primarySwatch: Colors.green,
),
);
}
}