flutter_pagination_pro 0.0.1
flutter_pagination_pro: ^0.0.1 copied to clipboard
A lightweight Flutter pagination package supporting infinite scroll, load more button, and numbered pagination with zero dependencies.
import 'package:flutter/material.dart';
import 'screens/home_screen.dart';
import 'theme/app_theme.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
ThemeMode _themeMode = ThemeMode.system;
void _toggleTheme() {
setState(() {
_themeMode = _themeMode == ThemeMode.light
? ThemeMode.dark
: _themeMode == ThemeMode.dark
? ThemeMode.system
: ThemeMode.light;
});
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Pagination Pro Demo',
debugShowCheckedModeBanner: false,
theme: AppTheme.light,
darkTheme: AppTheme.dark,
themeMode: _themeMode,
home: HomeScreen(
themeMode: _themeMode,
onToggleTheme: _toggleTheme,
),
);
}
}