show method
void
show(
{ - String message = '',
})
Implementation
void show({
String message = '',
}) {
_message.value = message;
ScaffoldMessenger.of(_context).showSnackBar(
SnackBar(
duration: const Duration(days: 365),
backgroundColor: backgroundColor,
content: ValueListenableBuilder<double?>(
valueListenable: _progress,
builder: (BuildContext context, double? value, Widget? child) {
return Row(
children: [
SizedBox(
width: 24,
height: 24,
child: syncStyle == AtSyncStyle.material
? AtSyncIndicator(
value: value,
color: indicatorColor,
)
: cupertino.AtSyncIndicator(
value: value,
color: indicatorColor,
),
),
const SizedBox(width: 8),
Text(
_message.value,
style: textStyle,
),
],
);
},
),
),
);
}