Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Avoid Material button in lock screen test

Neeraj Gupta49caea68fe8a
diff --git a/mobile/packages/lock_screen/test/app_lock_test.dart b/mobile/packages/lock_screen/test/app_lock_test.dart
index 525469a0dc..aa24fab63e 100644
--- a/mobile/packages/lock_screen/test/app_lock_test.dart
+++ b/mobile/packages/lock_screen/test/app_lock_test.dart
@@ -10,9 +10,9 @@ void main() {
builder: (context) => Column(
children: [
Text(Theme.of(context).brightness.name),
- TextButton(
- onPressed: () =>
- AppLock.of(context)!.setThemeMode(ThemeMode.light),
+ GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ onTap: () => AppLock.of(context)!.setThemeMode(ThemeMode.light),
child: const Text('Use light'),
),
],