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

A lightweight and adaptive Flutter list widget that automatically adjusts the number of visible items based on available height.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const Homepage(),
    );
  }
}

class Homepage extends StatelessWidget {
  const Homepage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Adaptive Listview')),
      body: RepaintBoundary(
        child: AdaptiveListView(
          items: List.generate(10, (index) => 'Item $index'),
          padding: EdgeInsets.all(4),
          eventTextFontSize: 12,
          moreEventsIndicatorfontSize: 12,
          tileBorderWidth: 2,
          columnSpacing: 4,
          separatorHeight: 4,
        ),
      ),
    );
  }
}
1
likes
140
points
59
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight and adaptive Flutter list widget that automatically adjusts the number of visible items based on available height.

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on adaptive_listview