super_scroll 1.0.0 copy "super_scroll: ^1.0.0" to clipboard
super_scroll: ^1.0.0 copied to clipboard

A simple, lightweight, and powerful pagination library for Flutter.

example/lib/main.dart

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(),
      },
    );
  }
}
1
likes
160
points
158
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple, lightweight, and powerful pagination library for Flutter.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on super_scroll