Disable splash for smoother html perf

This commit is contained in:
2023-09-06 19:07:17 +05:30
parent 329df061d3
commit 8b0b770460

View File

@@ -22,6 +22,7 @@ class HomePage extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text("Daily ${data.menuTime} Menu"), title: Text("Daily ${data.menuTime} Menu"),
bottom: TabBar( bottom: TabBar(
splashFactory: NoSplash.splashFactory,
indicator: const UnderlineTabIndicator( indicator: const UnderlineTabIndicator(
insets: EdgeInsets.fromLTRB(10, 3, 10, 3)), insets: EdgeInsets.fromLTRB(10, 3, 10, 3)),
onTap: (int index) { onTap: (int index) {
@@ -36,6 +37,7 @@ class HomePage extends StatelessWidget {
]), ]),
actions: [ actions: [
InkWell( InkWell(
splashFactory: NoSplash.splashFactory,
onTap: () { onTap: () {
data.decrDate(); data.decrDate();
}, },
@@ -44,6 +46,7 @@ class HomePage extends StatelessWidget {
size: 30, size: 30,
)), )),
InkWell( InkWell(
splashFactory: NoSplash.splashFactory,
onLongPress: () { onLongPress: () {
showDatePicker( showDatePicker(
context: context, context: context,
@@ -63,6 +66,7 @@ class HomePage extends StatelessWidget {
), ),
), ),
InkWell( InkWell(
splashFactory: NoSplash.splashFactory,
onTap: () { onTap: () {
data.incrDate(); data.incrDate();
}, },