You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void main() {
/// Initialize the plugin.
await Motion.initialize(); ❌
/// Globally set the sensors sampling rate to 60 frames per second.
Motion.setUpdateInterval(60.fps); ❌
/// Run the app.
runApp(...);
}
Update (.instance)
void main() async {
WidgetsFlutterBinding.ensureInitialized();
/// Initialize the plugin to determine gyroscope availability.
await Motion.instance.initialize(); ✅
/// Globally set Motion's update interval to 60 frames per second.
Motion.instance.setUpdateInterval(60.fps); ✅
runApp(const MyApp());
}
The text was updated successfully, but these errors were encountered:
Hi,
There is one error in Doc : Visit Here
Error :
Update (
.instance
)The text was updated successfully, but these errors were encountered: