Created
December 9, 2021 18:12
-
-
Save crazy-diya/632fa6559efa42e0211772a52ea48b6a to your computer and use it in GitHub Desktop.
Beautiful Loadin Cycle Flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_spinkit/flutter_spinkit.dart'; | |
class Loading extends StatelessWidget { | |
const Loading({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
double width = MediaQuery.of(context).size.width * 0.35; | |
return Container( | |
color: Colors.transparent, | |
child: Center( | |
child: SpinKitCircle( | |
color: Colors.black26, | |
size: 150, | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment