Skip to content

Commit

Permalink
Make analyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Sep 16, 2024
1 parent 4684204 commit 39ba624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/theme_editor/lib/marianos_clones/netflix_clone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1787,12 +1787,13 @@ class _BrowseScreenState extends State<BrowseScreen> {
final item = _originals[index];
return GestureDetector(
onTap: () {
final navigator = Navigator.of(context);
Future.delayed(Duration(milliseconds: 500), () {
if (!_video.second.paused) {
_video.second.pause();
_video.second.remove();
}
Navigator.of(context).push(
navigator.push(
MaterialPageRoute(
builder: (_) => PlayMovie(),
),
Expand Down Expand Up @@ -2308,13 +2309,13 @@ class _BrowseScreenState extends State<BrowseScreen> {
Widget _playMovie(double width) {
return GestureDetector(
onTap: () {
final navigator = Navigator.of(context);
Future.delayed(Duration(milliseconds: 500), () {
if (!_video.second.paused) {
_video.second.pause();
_video.second.remove();
}
Navigator.of(context)
.push(MaterialPageRoute(builder: (_) => PlayMovie()));
navigator.push(MaterialPageRoute(builder: (_) => PlayMovie()));
});
},
child: MouseRegion(
Expand Down
2 changes: 2 additions & 0 deletions lib/src/core/lifecycle/lifecycle_web.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: avoid_web_libraries_in_flutter

import 'dart:async';
import 'dart:html';
import 'dart:js_util' as js_util;
Expand Down

0 comments on commit 39ba624

Please sign in to comment.