holybibleeducation 0.0.10 holybibleeducation: ^0.0.10 copied to clipboard
The Holy Bible Education package is a comprehensive resource that provides devlopers with daily Bible readings to integrate into their applications.
import 'package:flutter/material.dart';
import 'package:holybibleeducation/holybibleeducation.dart';
void main()
{
runApp(HolyBibleEducationExample());
}
class HolyBibleEducationExample extends StatelessWidget {
const HolyBibleEducationExample({super.key});
@override
Widget build(BuildContext context) {
int todaysdate = 16062023; //change to current date or write code to dynamically convert date to this format
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("Readings")),
body: SingleChildScrollView(
child: Column(
children: [
Text("First Reading"),
Text(Readings.firstReading[todaysdate]![0]), //fetch the reading reference
Text(Readings.firstReading[todaysdate]![1]), //fetch the reading text
],
),
),
),
);
}
}