show method
void
show()
Implementation
void show()=> showDialog(
//barrierDismissible: false,
context: context,
builder: (context) {
return Material(
type: MaterialType.transparency,
child: Center(
child: Container(
width: (isPortrait(context) ? 600.0 : MediaQuery.of(context).size.width)-32,
padding: const EdgeInsets.fromLTRB(0, 16, 0, 16),
margin: const EdgeInsets.fromLTRB(0, 50, 0, 200),
constraints: BoxConstraints(
maxHeight: MediaQuery.of(context).size.height/2,
),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: Theme.of(context).colorScheme.surface,
),
child: items.length >= maxShowItems
? ListView(children: _createWidgets())
: Column( mainAxisSize: MainAxisSize.min, children: _createWidgets())
)
)
);
}
);