Comments (5)
Sure. I found that this issue only occur if shared_preferences
is used with flutter_quill
. Using shared_preferences
with other dozens of packages in our project all works well. I will first check super_clipboard
that flutter_quill
depends on, which uses Platform Specific Configurations. If I find other problems, I will report.
from flutter.
Hi @EMUNES
Your sample code above is production code and it's unclear which plugin is causing the issue. You should narrow down the issue by removing the usage of 3rd party plugins/packages one by one, unrelated/unaffected pages, and isolating the affected page into a minimal sample code that can produce the issue. And please share it here when you have such an example. Thanks!
from flutter.
Thanks @huycoz. I never thought a plugin can cause this big trouble to the project. Taking your suggestion, I can reproduce the exception if I had flutter_quill
in my project. The exception persists from flutter_quill
9.0.0 to newest 9.3.10 version. The minimal example is as follows:
the minimal dependency in pubspec.yaml
name: fix
description: "A new Flutter project."
publish_to: "none"
version: 1.0.0+1
environment:
sdk: ">=3.3.4 <4.0.0"
dependencies:
flutter:
sdk: flutter
shared_preferences: ^2.2.3 # Persistent settings.
flutter_quill: "9.0.0"
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
the minimal production code to run
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final prefs = await SharedPreferences.getInstance();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Container();
}
}
It looks like I have found the problem. Everything was fine before, it could be flutter pub upgrade
certain dependencies under flutter_quill
. Maybe I should raise an issue there?
from flutter.
Well, since you left shared_preferences
in the sample code above, I re-checked this using its package example but couldn't reproduce the issue.
I think it may not issue of flutter_quill
because I don't see it has platform implementation (it's a normal package as I can see) but it could be caused by a plugin that it's depending on, see its Platform Specific Configurations.
So, if the issue appears when you only import and use flutter_quill
package, you should report the issue on its repository for better support there. In case you can narrow it down and find something new that you think this is a Flutter 1st party package bug, please write in comments.
from flutter.
It's a package issue related to rust
language recent changes. Fixed by irondash/irondash#51.
from flutter.
Related Issues (20)
- Update .ci.yaml in flutter/flutter to use iOS 18 only
- Upgrade remaining bots in dart-internal to macOS 14.5
- Delete dynamic_layouts from the packages repo HOT 2
- Design doc for Cupertino Modal Bottom Sheet Routes
- Flutter drive integration tests hanging forever in github actions: DriverError: Error while reading FlutterDriver result for command
- `ValueKey<T>(..).toString()` doesn't work in `Release` mode, gives response as `Instance of 'ValueKey<T>'` in `3.22.0` and `3.22.1`
- FocusManager related leak. HOT 3
- [flutter_test] A KeyDownEvent is dispatched, but the state shows that the physical key is already pressed
- Tree status not updating on github PRs HOT 1
- Android | WebViewWidget flickers when loading and resizing another Web View
- Add separated variant to SliverFixedExtentList widget
- rejected (bundle format is ambiguous (could be app or framework))
- Flutter demo app: Could not find com.android.tools.build:gradle:7.6.3. HOT 1
- Add-to-app should support predictive back route transitions HOT 1
- can't edit text form field after navigate from the screen in IOS HOT 1
- [Flutter Web] dialogs dismissed prematurely with ensureSemantics HOT 1
- [Flutter Web] The a11y placeholder is preventing the interaction with the host app in embedded mode. HOT 1
- Keyboard not opening after screen transitions HOT 5
- 3.23 beta branch info HOT 2
- Exception depending on the language of the column name in PaginatedDataTable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.