Skip to content

No Material widget found after upgrade to Flutter 3.47 #218

Description

@ichlubna

Getting this error in runtime after upgrade to Flutter 3.47. Maybe it it necessary to update the package?

======== Exception caught by widgets library =======================================================
The following assertion was thrown building _InkResponseStateWidget(gestures: [tap], mouseCursor: null, clipped to BoxShape.rectangle, dirty, state: _InkResponseState#e465b):
No Material widget found.

_InkResponseStateWidget widgets require a Material widget ancestor within the closest LookupBoundary.
In Material Design, most widgets are conceptually "printed" on a sheet of material. In Flutter's material library, that material is represented by the Material widget. It is the Material widget that renders ink splashes, for instance. Because of this, many material library widgets require that there be a Material widget in the tree above them.

To introduce a Material widget, you can either directly include one, or use a widget that contains Material itself, such as a Card, Dialog, Drawer, or Scaffold.

The relevant error-causing widget was:
InkWell InkWell:file:///home/ichlubna/.pub-cache/hosted/pub.dev/multi_select_flutter-4.1.3/lib/dialog/multi_select_dialog_field.dart:424:9

The specific widget that could not find a Material ancestor was: _InkResponseStateWidget
gestures: tap
mouseCursor: null
clipped to BoxShape.rectangle
dirty
state: _InkResponseState#e465b
The ancestors of this widget were:
: InkWell
: Column
direction: vertical
mainAxisAlignment: start
crossAxisAlignment: center
renderObject: RenderFlex#00462 NEEDS-LAYOUT NEEDS-PAINT
: _MultiSelectDialogFieldView
state: __MultiSelectDialogFieldViewState#6b079
: MultiSelectDialogField-[LabeledGlobalKey<FormFieldState>#b484a]
dependencies: [UnmanagedRestorationScope]
state: FormFieldState<List>#c04fa
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions