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

Creates a ListView that changes background color on Scrolling.

example/lib/main.dart

import 'package:color_animating_list_view/color_animating_list_view.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(title: '18 Bytes', home: HomePage());
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ColorAnimatingListView(
        colors: [Colors.yellowAccent, Colors.lightBlue, Colors.pinkAccent],
        children: [
          Column(
            children: [
              SizedBox(height: 50),
              Image.asset('images/anime.gif'),
              SizedBox(height: 500),
              Image.asset('images/anime.gif'),
            ],
          ),
          Column(
            children: [
              SizedBox(height: 500),
              Image.asset('images/anime.gif'),
              SizedBox(height: 500),
              Image.asset('images/anime.gif'),
            ],
          ),
          Column(
            children: [
              SizedBox(height: 500),
              Image.asset('images/anime.gif'),
              SizedBox(height: 50),
            ],
          ),
        ],
      ),
    );
  }
}
5
likes
160
points
20
downloads

Publisher

verified publishercodingfries.com

Weekly Downloads

Creates a ListView that changes background color on Scrolling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

animate_do, flutter, flutter_color, visibility_detector

More

Packages that depend on color_animating_list_view