flutter_svprogresshud 0.0.2 copy "flutter_svprogresshud: ^0.0.2" to clipboard
flutter_svprogresshud: ^0.0.2 copied to clipboard

outdated

A clean and lightweight progress HUD for flutter app.

example/lib/main.dart

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svprogresshud/flutter_svprogresshud.dart';

void main() {
  // SVProgressHUD.setDefaultStyle("light");
  SVProgressHUD.setDefaultMaskType("none");
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {

    SVProgressHUD.dismiss();
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            ListTile(
              title: Text('show'),
              onTap: () {
                SVProgressHUD.show('Loading...');
                SVProgressHUD.dismissWithDelay(1500);
              },
            )
          ],
        ),
      ),
    );
  }
}
48
likes
0
pub points
93%
popularity

Publisher

verified publisherleanflutter.dev

A clean and lightweight progress HUD for flutter app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_svprogresshud