letter_refresh_indicator 0.1.1 copy "letter_refresh_indicator: ^0.1.1" to clipboard
letter_refresh_indicator: ^0.1.1 copied to clipboard

discontinued

This package adds flutter letter indicator widget which can replace default refresh indicator.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:letter_refresh_indicator/letter_refresh_indicator.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'letter_refresh_indicator demo',
      home: MyHomePage(),
    );
  }
}

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("letter_refresh_indicator demo")),
      body: LetterRefreshIndicator(
        accent: Colors.lightGreen,
        onRefresh: () async => Future<void>.delayed(Duration(seconds: 2)),
        child: ListView(
          children: <Widget>[],
        ),
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

This package adds flutter letter indicator widget which can replace default refresh indicator.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

custom_refresh_indicator, flutter

More

Packages that depend on letter_refresh_indicator