progress_hud 0.2.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 92

progress_hud

A clean and lightweight progress HUD for your Flutter app

https://pub.dartlang.org/packages/progress_hud

Example

return new Scaffold(
  appBar: new AppBar(
    title: new Text('ProgressHUD Demo'),
  ),
  body: new Stack(
    children: <Widget>[
      new Text(
        'A clean and lightweight progress HUD for your Flutter app'
      ),
      new ProgressHUD(
        backgroundColor: Colors.black12,
        color: Colors.white,
        containerColor: Colors.blue,
        borderRadius: 5.0,
      )
    ],
  )
);

Showcase

[0.2.2]

  • Now can be passed a text, and this text it will appear below the circular progress indicator

[0.1.2]

  • Code improvements based on dartfmt, pubspec file improvements and added an example project

[0.1.1]

  • Added the possibility to show rounded container behind the circular progress indicator

[0.0.1]

  • Initial release

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:progress_hud/progress_hud.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: 'Flutter Demo'),
    );
  }
}

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> {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text('ProgressHUD Demo'),
        ),
        body: new Stack(
          children: <Widget>[
            new Text(
                'A clean and lightweight progress HUD for your Flutter app'),
            new ProgressHUD(
              backgroundColor: Colors.black12,
              color: Colors.white,
              containerColor: Colors.blue,
              borderRadius: 5.0,
              text: 'Loading...',
            )
          ],
        ));
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  progress_hud: "^0.2.2"

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:progress_hud/progress_hud.dart';
  
Version Uploaded Documentation Archive
0.2.2 Mar 14, 2018 Go to the documentation of progress_hud 0.2.2 Download progress_hud 0.2.2 archive
0.1.2 Mar 12, 2018 Go to the documentation of progress_hud 0.1.2 Download progress_hud 0.1.2 archive
0.1.1 Mar 12, 2018 Go to the documentation of progress_hud 0.1.1 Download progress_hud 0.1.1 archive
0.0.1 Mar 11, 2018 Go to the documentation of progress_hud 0.0.1 Download progress_hud 0.0.1 archive

Analysis

We analyzed this package on May 22, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1
  • Flutter: 0.4.4

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
84 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
92
Learn more about scoring.

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Suggestions

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.23.0 <2.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.6 1.14.9
meta 1.1.5
sky_engine 0.0.99
typed_data 1.1.5
vector_math 2.0.6 2.0.7
Dev dependencies
test ^0.12.0