This is an awesome loading button without external dependencies
awesome.loading.button.mov
This is a very simple to use package.
Example
AwesomeLoadingButton(
loadingIndicatorColor: Colors.blue,
loadingIndicatorValueColor: const AlwaysStoppedAnimation(
Colors.blueAccent,
),
onPressed: () async {
await Future.delayed(
const Duration(
seconds: 5,
),
);
},
text: 'Fetch',
),
Feel free to contribute by creating a pull request. I am always available.