From 8b0b7704606012a457b05abc1489a4b5305ae086 Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Wed, 6 Sep 2023 19:07:17 +0530 Subject: [PATCH] Disable splash for smoother html perf --- lib/views/homePage.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/views/homePage.dart b/lib/views/homePage.dart index 75bc6d6..4db8c26 100644 --- a/lib/views/homePage.dart +++ b/lib/views/homePage.dart @@ -22,6 +22,7 @@ class HomePage extends StatelessWidget { appBar: AppBar( title: Text("Daily ${data.menuTime} Menu"), bottom: TabBar( + splashFactory: NoSplash.splashFactory, indicator: const UnderlineTabIndicator( insets: EdgeInsets.fromLTRB(10, 3, 10, 3)), onTap: (int index) { @@ -36,6 +37,7 @@ class HomePage extends StatelessWidget { ]), actions: [ InkWell( + splashFactory: NoSplash.splashFactory, onTap: () { data.decrDate(); }, @@ -44,6 +46,7 @@ class HomePage extends StatelessWidget { size: 30, )), InkWell( + splashFactory: NoSplash.splashFactory, onLongPress: () { showDatePicker( context: context, @@ -63,6 +66,7 @@ class HomePage extends StatelessWidget { ), ), InkWell( + splashFactory: NoSplash.splashFactory, onTap: () { data.incrDate(); },