Disable splash for smoother html perf
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user