Run dart fix in lib

This commit is contained in:
LukasPoque
2023-11-06 14:27:16 +01:00
parent 8120cbea6d
commit 851d2df84e
5 changed files with 14 additions and 17 deletions

View File

@@ -1,8 +1,6 @@
import 'dart:async';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_filament/widgets/filament_gesture_detector_desktop.dart';
import 'package:flutter_filament/widgets/filament_gesture_detector_mobile.dart';

View File

@@ -49,7 +49,7 @@ class _FilamentGestureDetectorDesktopState
///
///
///
bool _scaling = false;
final bool _scaling = false;
bool _pointerMoving = false;
@@ -78,7 +78,7 @@ class _FilamentGestureDetectorDesktopState
// we don't want to end the zoom in the same frame, because this will destroy the camera manipulator (and cancel the zoom update).
// here, we just defer calling [zoomEnd] for 100ms to ensure the update is propagated through.
_scrollTimer = Timer(Duration(milliseconds: 100), () async {
_scrollTimer = Timer(const Duration(milliseconds: 100), () async {
await widget.controller.zoomEnd();
});
}

View File

@@ -110,8 +110,7 @@ class _SizedFilamentWidget extends StatefulWidget {
final FilamentController controller;
const _SizedFilamentWidget(
{super.key,
required this.width,
{required this.width,
required this.height,
this.initial,
required this.controller});