Fix for #158: Add kIsWeb check to instances where we want android-specific behaviors.
This commit is contained in:
parent
91c8cb9760
commit
bf2c0b2d04
@ -53,7 +53,7 @@ class AppLogic {
|
||||
await AppBitmaps.init();
|
||||
|
||||
// Set preferred refresh rate to the max possible (the OS may ignore this)
|
||||
if (PlatformInfo.isAndroid) {
|
||||
if (!kIsWeb && PlatformInfo.isAndroid) {
|
||||
await FlutterDisplayMode.setHighRefreshRate();
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ class AppHaptics {
|
||||
|
||||
static void buttonPress() {
|
||||
// Android/Fuchsia expect haptics on all button presses, iOS does not.
|
||||
if (PlatformInfo.isAndroid) {
|
||||
if (!kIsWeb && PlatformInfo.isAndroid) {
|
||||
lightImpact();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user