prayer_timer 1.0.4 copy "prayer_timer: ^1.0.4" to clipboard
prayer_timer: ^1.0.4 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: 150.0,
          progressBarColor: Colors.blueAccent,
          progressBarBackgroundColor: Colors.grey.shade200,
          fontColor: Colors.blueAccent,
          fontName: 'Hind Siliguri',
          containerHeight: '250', // Custom font color
        ),
      ),
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
    );
  }
}
6
likes
140
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to display a customizable circular prayer time timer with progress bar for Islamic prayer times, supporting custom APIs and local storage.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_fonts, http, shared_preferences

More

Packages that depend on prayer_timer