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.
See this 2 screenshots. You can hide this highlight color by this package
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(
child: ListView(),
),
);
}
hideHighlight by default true and it's optional,
hideHighlight: true,