flutter_spinkit 4.1.2 flutter_spinkit: ^4.1.2 copied to clipboard
A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.
import 'package:flutter/material.dart';
import './showcase.dart';
import './workspace.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'SpinKit Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
brightness: Brightness.dark,
),
home: Scaffold(
body: SafeArea(
child: Stack(
children: <Widget>[
Align(
child: LayoutBuilder(
builder: (context, _) {
return IconButton(
icon: Icon(Icons.play_circle_filled),
iconSize: 50.0,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute<void>(
builder: (BuildContext context) => ShowCase(),
fullscreenDialog: true,
),
);
},
);
},
),
alignment: Alignment.bottomCenter,
),
Positioned.fill(
child: Center(
child: WorkSpace(),
),
),
],
),
),
),
);
}
}