flutter_section_table_view 1.0.2 copy "flutter_section_table_view: ^1.0.2" to clipboard
flutter_section_table_view: ^1.0.2 copied to clipboard

outdated

A iOS like table view (list view) including section, row, section header and divider, support pull refresh

example/lib/main.dart

import 'package:flutter/material.dart';
import 'FullList.dart';
import 'SectionList.dart';
import 'MinList.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(appBar: AppBar(title: Text('Example')), body: HomePage()),
    );
  }
}

class HomePage extends StatelessWidget {
  void goNext(context, page) {
    Navigator.of(context).push(MaterialPageRoute(builder: (context) => page));
  }

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        ListTile(
          contentPadding: EdgeInsets.all(10.0),
          leading: Text(
            'Full List \n- Pull down/up refresh & scroll to indexPath',
            style: TextStyle(color: Colors.blue, fontSize: 17.0),
          ),
          onTap: () {
            goNext(context, FullList());
          },
        ),
        ListTile(
          contentPadding: EdgeInsets.all(10.0),
          leading: Text(
            'Static List \n- Scroll to indexPath',
            style: TextStyle(color: Colors.blue, fontSize: 17.0),
          ),
          onTap: () {
            goNext(context, SectionList());
          },
        ),
        ListTile(
          contentPadding: EdgeInsets.all(10.0),
          leading: Text(
            'Min List \n- Can\'t refresh and scroll to indexPath',
            style: TextStyle(color: Colors.blue, fontSize: 17.0),
          ),
          onTap: () {
            goNext(context, MinList());
          },
        ),
      ],
    );
  }
}
14
likes
0
pub points
72%
popularity

Publisher

unverified uploader

A iOS like table view (list view) including section, row, section header and divider, support pull refresh

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_section_table_view