simple widget
it is highly recommended to read the documentation and run the example project on a real device to fully understand and inspect the full range of capabilities.
this is a highly customisable and simple widget for having ios 13 style tab bars.
how-to-use
simply create a cupertinotabbar as shown in the example:
cupertinotabbar(
colors.black //_backgroundcolor
colors.white //_foregroundcolor
[...], //_widgets
cupertinotabbarvaluegetter, //_valuegetter
(int index) { //_ontap
setstate(() {
cupertinotabbarvalue = index;
});
},
{key key,
useseparators : false,
horizontalpadding : 10.0,
verticalpadding : 10.0,
borderradius : const borderradius.all(const radius.circular(10.0)),
duration : const duration(milliseconds: 250)})
)
int cupertinotabbarvalue = 0;
int cupertinotabbarvaluegetter() => cupertinotabbarivalue;
further explanations:
for a complete set of descriptions for all parameters and methods, see the documentation.
Comments are closed.