liquid_progress_indicator 0.4.0 liquid_progress_indicator: ^0.4.0 copied to clipboard
A progress indicator with water-like effect in Flutter. Works similarly to Flutters own ProgressIndicator.
import 'package:flutter/material.dart';
import 'liquid_circular_progress_indicator_page.dart';
import 'liquid_custom_progress_indicator_page.dart';
import 'liquid_linear_progress_indicator_page.dart';
void main() => runApp(MaterialApp(home: Example()));
class Example extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Liquid Progress Indicator Examples"),
),
body: Padding(
padding: const EdgeInsets.all(28.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
FlatButton(
child: Text("Circular"),
color: Colors.grey[300],
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => LiquidCircularProgressIndicatorPage(),
),
),
),
FlatButton(
child: Text("Linear"),
color: Colors.grey[300],
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => LiquidLinearProgressIndicatorPage(),
),
),
),
FlatButton(
child: Text("Custom"),
color: Colors.grey[300],
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => LiquidCustomProgressIndicatorPage(),
),
),
),
],
),
),
);
}
}