akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.36k stars 377 forks source link

panel!=null || panel builder!=null is not true #307

Open JaySoni26 opened 2 years ago

JaySoni26 commented 2 years ago

======== Exception caught by widgets library ======================================================= The following assertion was thrown building HomeScreen(dirty, state: _HomeScreenState#94ce4(tickers: tracking 1 ticker)): 'package:sliding_up_panel/src/panel.dart': Failed assertion: line 199 pos 16: 'panel != null || panelBuilder != null': is not true.

yunus-floo commented 2 years ago

panel must be set to widget, not allowed to null

SlidingUpPanel(
        body: Container(),
        panel: Container(
          width: 100.w,
          decoration: BoxDecoration(color: Theme.of(context).colorScheme.surface),
        ),
      ),