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

discontinued

A new Flutter package project.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text('SyncListView'),
      ),
      body: SyncListView(
        children: List.generate(
          10,
          (index) {
            return SyncTab(
              tab: (isActive) => Container(
                color: isActive ? Colors.green : Colors.grey,
                padding: EdgeInsets.symmetric(horizontal: 20, vertical: 7),
                child: Text('$index'),
              ),
              title: Center(
                  child: Text(
                'TITLE: $index',
                style: TextStyle(
                  color: Colors.red,
                  fontSize: 24,
                  fontWeight: FontWeight.bold,
                ),
              )),
              body: ListView.builder(
                shrinkWrap: true,
                physics: NeverScrollableScrollPhysics(),
                itemBuilder: (_, i) => Card(
                  child: Container(
                    padding: EdgeInsets.all(15),
                    child: Text('$i'),
                  ),
                ),
                itemCount: 5,
              ),
            );
          },
        ),
      ),
    );
  }
}
0
likes
40
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package project.

Homepage

License

MIT (license)

Dependencies

flutter, get, scrollable_positioned_list

More

Packages that depend on sync_list_view