color_animating_list_view 1.0.0
color_animating_list_view: ^1.0.0 copied to clipboard
Creates a ListView that changes background color on Scrolling.
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),
],
),
],
),
);
}
}