circular_placeholder 0.1.3 circular_placeholder: ^0.1.3 copied to clipboard
Circular Placeholder is widget. It is good to use this for circular areas when your circular designs are not ready yet.
import 'package:circular_placeholder/circular_placeholder.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blueGrey,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Container(
alignment: Alignment.center,
height: 120,
width: 220,
child: CircularPlaceholder(
color: Colors.green,
strokeWidth: 3,
),
),
),
);
}
}