pull_to_refresh_pro 0.0.1 copy "pull_to_refresh_pro: ^0.0.1" to clipboard
pull_to_refresh_pro: ^0.0.1 copied to clipboard

支持Flutter3.0

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    if (!mounted) return;
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
4
likes
130
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

支持Flutter3.0

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on pull_to_refresh_pro

Packages that implement pull_to_refresh_pro