You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansu_ui/example/lib/widgets/example_refresh.dart

29 lines
672 B

import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
class ExampleRefresh extends StatefulWidget {
ExampleRefresh({Key key}) : super(key: key);
@override
_ExampleRefreshState createState() => _ExampleRefreshState();
}
class _ExampleRefreshState extends State<ExampleRefresh> {
@override
Widget build(BuildContext context) {
return ASScaffold(
title: '刷新',
body: ASRefresh(
child: ListView.builder(
itemBuilder: (context, index) {
return Text('test');
},
itemCount: 50,
),
onRefresh: () async {},
onLoad: () async {},
),
);
}
}