wave_loading_indicator 1.0.7 copy "wave_loading_indicator: ^1.0.7" to clipboard
wave_loading_indicator: ^1.0.7 copied to clipboard

Reincarnation of deprecated library. With more customizations and tuned logic. Try now!

example/README.md

Look to this code to understand how to use this library

import 'package:flutter/material.dart';
import 'package:wave_loading_indicator/wave_progress.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  double _progress = 0.0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: WaveProgress(
          borderSize: 3.0,
          size: 180,
          borderColor: Colors.redAccent,
          foregroundWaveColor: Colors.greenAccent,
          backgroundWaveColor: Colors.blueAccent,
          progress: _progress,
          innerPadding: 10,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), 
    );
  }

  void _incrementCounter() {
    setState(() {
      _progress += 10;
      if (_progress > 100) {
        _progress = 0;
      }
    });
  }
}

15
likes
140
pub points
72%
popularity

Publisher

unverified uploader

Reincarnation of deprecated library. With more customizations and tuned logic. Try now!

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on wave_loading_indicator