1 Star 0 Fork 0

luoyi/flutter-quill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
using_custom_app_widget.md 1.30 KB
一键复制 编辑 原始数据 按行查看 历史

Using Custom App Widget

This project uses some adaptive widgets like AdaptiveTextSelectionToolbar which require the following delegates:

  1. Default Material Localizations delegate
  2. Default Cupertino Localizations delegate
  3. Default Widgets Localizations delegate

You don't need to include those since they are defined by default but if you are using a Custom app or you are overriding the localizationsDelegates in the App widget then please make sure it includes those:

localizationsDelegates: const [
    DefaultCupertinoLocalizations.delegate,
    DefaultMaterialLocalizations.delegate,
    DefaultWidgetsLocalizations.delegate,
],

You might need more depending on your use case, for example, if you are using custom localizations for your app, using a custom app widget like FluentApp from FluentUI which will also need

localizationsDelegates: const [
    // Required localizations delegates ...
    FluentLocalizations.delegate,
    AppLocalizations.delegate,
],

Note: In the latest versions of FluentApp you no longer need to add the localizationsDelegates but this is just an example, for more info

There are additional notes on the Localizations page

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Dart
1
https://gitee.com/luoyi666/flutter-quill.git
git@gitee.com:luoyi666/flutter-quill.git
luoyi666
flutter-quill
flutter-quill
master

搜索帮助