pull_to_refresh_notification 0.3.3 copy "pull_to_refresh_notification: ^0.3.3" to clipboard
pull_to_refresh_notification: ^0.3.3 copied to clipboard

outdated

Flutter plugin for building pull to refresh effects with PullToRefreshNotification and PullToRefreshContainer quickly.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'example_route.dart';
import 'pages/no_route.dart';

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

class MyApp extends StatelessWidget {
  MyApp() {}
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'extended image demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      builder: (c, w) {
        ScreenUtil.instance =
            ScreenUtil(width: 750, height: 1334, allowFontScaling: true)
              ..init(c);
        var data = MediaQuery.of(c);
        return MediaQuery(
          data: data.copyWith(textScaleFactor: 1.0),
          child: w,
        );
      },
      initialRoute: "fluttercandies://mainpage",
      onGenerateRoute: (RouteSettings settings) {
        var routeResult =
            getRouteResult(name: settings.name, arguments: settings.arguments);

        var page = routeResult.widget ?? NoRoute();

        return Platform.isIOS
            ? CupertinoPageRoute(settings: settings, builder: (c) => page)
            : MaterialPageRoute(settings: settings, builder: (c) => page);
      },
    );
  }
}
62
likes
0
pub points
94%
popularity

Publisher

verified publisherfluttercandies.com

Flutter plugin for building pull to refresh effects with PullToRefreshNotification and PullToRefreshContainer quickly.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pull_to_refresh_notification