percent_indicator_plus 4.3.0 copy "percent_indicator_plus: ^4.3.0" to clipboard
percent_indicator_plus: ^4.3.0 copied to clipboard

Flutter 升级 3.35.7 之后,对 percent_indicator 插件的升级(After Flutter upgrade 3.35.7, the upgrade of percent_indicator plugins.)。

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:percent_indicator_plus_example/sample_circular_page.dart';
import 'package:percent_indicator_plus_example/sample_linear_page.dart';
import 'package:percent_indicator_plus_example/multi_segment_page.dart';

void main() {
  runApp(MaterialApp(home: Scaffold(body: SamplePage())));
}

class SamplePage extends StatefulWidget {
  @override
  _SamplePageState createState() => _SamplePageState();
}

class _SamplePageState extends State<SamplePage> {
  void _openPage(Widget page) {
    Navigator.push(
      context,
      MaterialPageRoute(
        builder: (BuildContext context) => page,
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            MaterialButton(
              color: Colors.blueAccent,
              child: Text("Circular Library"),
              onPressed: () => _openPage(SampleCircularPage()),
            ),
            Padding(
              padding: EdgeInsets.all(20.0),
            ),
            MaterialButton(
              color: Colors.blueAccent,
              child: Text("Linear Library"),
              onPressed: () => _openPage(SampleLinearPage()),
            ),
            Padding(
              padding: EdgeInsets.all(20.0),
            ),
            MaterialButton(
              color: Colors.blueAccent,
              child: Text("Multi Segment Linear Library"),
              onPressed: () => _openPage(MultiSegmentPage()),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
130
points
80
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter 升级 3.35.7 之后,对 percent_indicator 插件的升级(After Flutter upgrade 3.35.7, the upgrade of percent_indicator plugins.)。

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on percent_indicator_plus