ThirukuralBySectionNames class
A widget that displays Thirukurals grouped by section names.
Thirukural is divided into three main sections (Paals):
- அறத்துப்பால் (Arathupaal) - The Book of Virtue (Kurals 1-380)
- பொருட்பால் (Porutpaal) - The Book of Wealth (Kurals 381-1080)
- காமத்துப்பால் (Kaamathupaal) - The Book of Love (Kurals 1081-1330)
This widget displays both Tamil and English section names, and allows users to browse all Kurals within each section.
This widget is fully self-contained and handles all necessary setup internally. You don't need to wrap your app with any special widgets to use this.
Example usage:
import 'package:flutter_thirukural/flutter_thirukural.dart';
// Display section browser
ThirukuralBySectionNames()
// Use in navigation
Navigator.push(
context,
MaterialPageRoute(builder: (context) => ThirukuralBySectionNames()),
);
Features:
- Browse all 3 sections in Tamil and English
- View all Kurals within a selected section
- Expandable cards for detailed Kural information
- Pull-to-refresh functionality
- Responsive design for all screen sizes
- Clear filter to return to section selection
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ThirukuralBySectionNames
Constructors
- ThirukuralBySectionNames({Key? key})
-
Creates a widget that displays Thirukurals categorized by section names.
const
Properties
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited