Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 750 Bytes

using_custom_app_widget.md

File metadata and controls

20 lines (14 loc) · 750 Bytes

🛠️ Using Custom App Widget

The 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 these since they are defined by default. However, if you are using a custom app or overriding the localizationsDelegates in the App widget, ensure it includes the following:

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

📄 For additional notes, see the localizations setup page.