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

outdated

Reincarnation of deprecated library

example/README.md

Look to this code to understand how to use this library

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

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Wave Progress Widget'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, this.title}) : super(key: key);
  final String? title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var _progress = 50.0;

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title!),
      ),
      body: new Center(
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            WaveProgress(180.0, Colors.blue, Colors.blueAccent, _progress),
            Container(
              margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
              child: Slider(
                  max: 100.0,
                  min: 0.0,
                  value: _progress,
                  onChanged: (value) {
                    setState(() => _progress = value);
                  }),
            ),
            Text(
              '${_progress.round()}',
              style: TextStyle(color: Colors.blueAccent, fontSize: 40.0),
            )
          ],
        ),
      ),
    );
  }
}
17
likes
0
pub points
68%
popularity

Publisher

unverified uploader

Reincarnation of deprecated library

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on wave_loading_indicator