scrolling_highlight 1.0.1 scrolling_highlight: ^1.0.1 copied to clipboard
When you create a listview in Flutter and scroll up and down you will find a highlight color in both. To remove ListView highlight color in Flutter you can use it. It is simple and helpful.
When you create a listview in Flutter and scroll up and down you will find a highlight color in both. To remove ListView highlight color in Flutter you can use it. It is simple and helpful.
Highlight color in the top of the screen
Highlight color in the bottom of the screen
Features #
. Hide the highlight color for listview when you scroll
Getting started #
Run this command in terminal
$ flutter pub add scrolling_highlight
or
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
scrolling_highlight: ^1.0.0
Import it #
Now in your Dart code, you can use:
import 'package:scrolling_highlight/scrolling_highlight.dart';
Usage #
just wrap your widget with ScrollingHighlight()
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Scrolling Highlight Demo'),
),
body: ScrollingHighlight(
showHighlight: true,
child: ListView(),
),
);
}
showHighlight by default true,
showHighlight: true,