paged_datatable 0.4.10 copy "paged_datatable: ^0.4.10" to clipboard
paged_datatable: ^0.4.10 copied to clipboard

A Flutter widget which is a paged DataTable which supports cursor pagination

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:paged_datatable/paged_datatable.dart';
import 'package:paged_datatable_example/post.dart';

import 'main_view.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // await initializeDateFormatting("en");

  PostsRepository.generate(100);

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        PagedDataTableLocalization.delegate
      ],
      supportedLocales: const [
        Locale("es"), Locale("en")
      ],
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
        textTheme: GoogleFonts.robotoTextTheme(),
        cardTheme: CardTheme(
          shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
        ),
        popupMenuTheme: PopupMenuThemeData(
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(30)
          )
        )
      ),
      home: const MainView(),
      
    );
  }
}
64
likes
40
pub points
89%
popularity

Publisher

verified publishertomasweigenast.me

A Flutter widget which is a paged DataTable which supports cursor pagination

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

equatable, flutter, flutter_localizations, intl, provider, stream_transform

More

Packages that depend on paged_datatable