prayer 0.0.1 copy "prayer: ^0.0.1" to clipboard
prayer: ^0.0.1 copied to clipboard

The prayer library is a framework for creating a prayer application.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:prayer/prayer.dart';

final ThemeData themeData = ThemeData(
  primarySwatch: Colors.green,
  textTheme: const TextTheme(
      titleLarge: TextStyle(
        letterSpacing: 2.5,
        fontWeight: FontWeight.bold,
        color: Colors.white,
      ),
      headlineSmall: TextStyle(
        letterSpacing: 2.0,
        fontWeight: FontWeight.bold,
        fontSize: 20.0,
      ),
      titleMedium: TextStyle(
        letterSpacing: 2.0,
        fontWeight: FontWeight.bold,
        fontSize: 18.0,
      ),
      titleSmall: TextStyle(
        letterSpacing: 2.0,
      ),
      bodyLarge: TextStyle(
        letterSpacing: 2.0,
        height: 2.0,
        fontSize: 18.0,
      )),
);

final configuration = PrayerConfiguration(
  showSubtitleOnListScreen: true,
  showSubtitleOnDetailsScreen: true,
  showTabBar: true,
  tabs: const [
    PrayerTabData(
      type: PrayerTabType.prayer,
      label: 'Prayers',
      icon: Icons.question_answer_outlined,
    ),
    PrayerTabData(
      type: PrayerTabType.scripture,
      label: 'Scripture',
      icon: Icons.menu_book_outlined,
    ),
    PrayerTabData(
      type: PrayerTabType.questions,
      label: 'Questions',
      icon: Icons.help_outline,
    ),
  ],
);

final List<Prayer> prayers = [
  Prayer(
    id: 0,
    title: 'The Lord\'s Prayer',
    subTitle: 'an example prayer',
    prayerText:
        'Our Father who art in heaven, Hallowed be thy name. Thy kingdom come. Thy will be done, as in heaven, so on earth. Give us this day our daily bread. And forgive us our debts, as we also have forgiven our debtors. And bring us not into temptation, but deliver us from the evil.',
    scriptureReference: 'Matthew 6:9-13',
    scriptureText:
        'Our Father who art in heaven, Hallowed be thy name. Thy kingdom come. Thy will be done, as in heaven, so on earth. Give us this day our daily bread. And forgive us our debts, as we also have forgiven our debtors. And bring us not into temptation, but deliver us from the evil.',
    questions: [
      'What does it mean to pray to God as our Father?',
      'What does it mean to pray that God\'s kingdom come?',
      'What does it mean to pray that God\'s will be done?',
      'What does it mean to pray for our daily bread?',
      'What does it mean to pray that God would forgive us?',
      'What does it mean to pray that God would not lead us into temptation?',
    ],
  ),
];

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return PrayerApp(
      prayers: prayers,
      title: 'Example Prayer App',
      themeData: themeData,
      configuration: configuration,
    );
  }
}
4
likes
130
points
13
downloads

Publisher

verified publisherfliturgy.com

Weekly Downloads

The prayer library is a framework for creating a prayer application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_localizations, provider

More

Packages that depend on prayer