For demo purposes, we use random data, as illustrated in the following code example. @override void initState() { _globalKey = GlobalKey(); _controller = ScrollController(); _airFareDataCollection = <AirFare>[]; _airlineId = <int>[]; _fares = <String>[]; _minDate = DateTime.now();...
To limit paints in Flutter, you must use the RepaintBoundary widget. From the docs: This widget creates a separate display list for its child, which can improve performance if the subtree repaints at different times than the surrounding parts of the tree. This is not a well-known Widget, ...