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

Custom list view of flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:uilistview/f_ui_list_view.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: FUIListView(
          header: Container(
            margin:
                const EdgeInsets.symmetric(horizontal: 20).copyWith(bottom: 60),
            height: 500,
            color: Colors.cyan,
          ),
          footer: Container(
            margin:
                const EdgeInsets.symmetric(horizontal: 20).copyWith(bottom: 60),
            height: 500,
            color: Colors.deepOrange,
          ),
          builder: (BuildContext context, dynamic item, int index) {
            return Container(
              margin: const EdgeInsets.symmetric(horizontal: 20)
                  .copyWith(bottom: 40),
              height: 200,
              color: Colors.amber,
              child: Center(
                child: Text(
                    'index = ${index.toString()} / text = ${item.toString()}'),
              ),
            );
          },
          data: const [1, 2, 3, 4, 5, 6],
        ),
      ),
    );
  }
}
0
likes
100
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Custom list view of flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on uilistview

Packages that implement uilistview