Skip to main content

diff_animated_list 0.0.1 copy "diff_animated_list: ^0.0.1" to clipboard
diff_animated_list: ^0.0.1 copied to clipboard

Animated list and grid for Flutter that diffs your data itself: pass a new list and get animated inserts, removals, moves and changes. No manual bookkeeping.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/customize_page.dart';
import 'src/grid_page.dart';
import 'src/playground_page.dart';

void main() => runApp(const ExampleApp());

/// Example app for `diff_animated_list`.
class ExampleApp extends StatelessWidget {
  /// Creates the app.
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    ThemeData theme(Brightness b) => ThemeData(
          useMaterial3: true,
          colorSchemeSeed: const Color(0xFF4F46E5),
          brightness: b,
        );
    return MaterialApp(
      title: 'diff_animated_list',
      debugShowCheckedModeBanner: false,
      theme: theme(Brightness.light),
      darkTheme: theme(Brightness.dark),
      home: const Home(),
    );
  }
}

/// Tabs: playground, grid, customization.
class Home extends StatelessWidget {
  /// Creates the home screen.
  const Home({super.key});

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 3,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('diff_animated_list'),
          bottom: const TabBar(tabs: [
            Tab(text: 'List'),
            Tab(text: 'Grid'),
            Tab(text: 'Customize'),
          ]),
        ),
        body: const TabBarView(
          children: [PlaygroundPage(), GridPage(), CustomizePage()],
        ),
      ),
    );
  }
}
1
likes
160
points
720
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Animated list and grid for Flutter that diffs your data itself: pass a new list and get animated inserts, removals, moves and changes. No manual bookkeeping.

Repository (GitHub)
View/report issues

Topics

#animation #list #listview #diff #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on diff_animated_list