end_padding 1.0.1 copy "end_padding: ^1.0.1" to clipboard
end_padding: ^1.0.1 copied to clipboard

A package that provides utils for creating ending padding in lists.

example/lib/main.dart

import 'package:end_padding/end_padding.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const MainApp());
  // Enable Edge to Edge mode
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
  SystemChrome.setSystemUIOverlayStyle(
    const SystemUiOverlayStyle(
      systemNavigationBarColor: Colors.transparent,
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: (context, child) {
        // Enable Edge to Edge mode
        SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
        return child!;
      },
      home: Scaffold(
        appBar: AppBar(
          title: const Text('End Padding Example'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: const Icon(Icons.add),
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              for (var i = 0; i < 25; i++)
                ListTile(
                  title: Text('Item $i'),
                ),
              // Inside a colored box to see the padding
              const ColoredBox(
                color: Colors.red,
                child: EndPadding(
                  useFloating: true,
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
150
points
22
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A package that provides utils for creating ending padding in lists.

Repository (GitHub)

Topics

#lists #widget #padding

Documentation

API reference

Funding

Consider supporting this project:

github.com
buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on end_padding