diff --git a/lib/view/puzzle_page.dart b/lib/view/puzzle_page.dart index 8a57a7d..9be08e7 100644 --- a/lib/view/puzzle_page.dart +++ b/lib/view/puzzle_page.dart @@ -31,19 +31,7 @@ class _PuzzlePageState extends State { super.initState(); _puzzleFocusNode = FocusNode(); detector = ShakeDetector.autoStart(onPhoneShake: () { - if (MediaQuery.of(context).orientation == Orientation.portrait) { - // is portrait - SystemChrome.setPreferredOrientations([ - DeviceOrientation.landscapeLeft, - DeviceOrientation.landscapeRight, - ]); - } else { - // is landscape - SystemChrome.setPreferredOrientations([ - DeviceOrientation.portraitDown, - DeviceOrientation.portraitUp, - ]); - } + _shuffle(context); }); } diff --git a/pubspec.lock b/pubspec.lock index 3e23bfc..ff66b63 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -399,13 +399,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.12.11" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.3" meta: dependency: transitive description: @@ -662,7 +655,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" + version: "0.4.3" timing: dependency: transitive description: