super_scroll 1.0.0
super_scroll: ^1.0.0 copied to clipboard
A simple, lightweight, and powerful pagination library for Flutter.
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'screens/user_list_screen.dart';
import 'screens/community_list_screen.dart';
import 'screens/business_list_screen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Load .env
try {
await dotenv.load(fileName: ".env");
} catch (e) {
debugPrint("Warning: Could not load .env file: $e");
}
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Super Scroll Example',
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
),
initialRoute: '/',
routes: {
'/': (context) => const UserListScreen(),
'/communities': (context) => const CommunityListScreen(),
'/businesses': (context) => const BusinessListScreen(),
},
);
}
}