flutter_section_table_view 1.0.0 copy "flutter_section_table_view: ^1.0.0" to clipboard
flutter_section_table_view: ^1.0.0 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
71%
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