Use Const in Widgets
The widget will not change when setState call we should define it as constant. It will prevent the widget to rebuild so it improves performance.
Container( padding: const EdgeInsets.only(top: 10), color: Colors.black, child: const Center( child: const Text( "No Data found", style: const TextStyle(fontSize: 30, fontWeight: FontWeight.w800), ), ), );