flutter_tableview 1.0.1 flutter_tableview: ^1.0.1 copied to clipboard
A flutter widget like iOS UITableview. let listView with section header and each section header will hover at the top.
//flutter
import 'package:flutter/material.dart';
//tool
import 'demo_tool/route_tool.dart';
//page
import 'demo_page/simple_demo_page.dart';
import 'demo_page/wrap_refresh_demo_page.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Home(),
);
}
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
initScreen(context: context);
return Scaffold(
appBar: AppBar(
title: Text('FlutterTableView'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
onPressed: () {
push(context, SimpleDemoPage());
},
child: Text('simple demo'),
),
FlatButton(
onPressed: () {
push(context, WrapRefreshDemoPage());
},
child: Text('wrap refresh demo'),
),
],
),
),
);
}
}