Skip to content

Instantly share code, notes, and snippets.

@crazy-diya
Created December 9, 2021 18:12
Show Gist options
  • Save crazy-diya/632fa6559efa42e0211772a52ea48b6a to your computer and use it in GitHub Desktop.
Save crazy-diya/632fa6559efa42e0211772a52ea48b6a to your computer and use it in GitHub Desktop.
Beautiful Loadin Cycle Flutter
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