createAndroidWidget method
Implementation
@override
ElevatedButton createAndroidWidget(BuildContext context) {
return ElevatedButton(
child: isLoading
? SizedBox(
height: 18.0,
width: 18.0,
child: PlatformProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
androidStrokeWidth: 2,
),
)
: Text(text!),
onPressed: onPressed,
style: ElevatedButton.styleFrom(
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
primary: color,
),
);
}