Answers for "listview flutter give padding to list bottom"

0

listview flutter give padding to list bottom

import 'package:flutter/material.dart';

main() {
  runApp(MaterialApp(
      home: Scaffold(
    body: ListView.builder(
        padding: const EdgeInsets.only(bottom: kFloatingActionButtonMargin + 48),
        itemCount: 23,
        itemBuilder: (context, index) => ListTile(
              trailing: Text('$index'),
            )),
    floatingActionButton: FloatingActionButton(
      onPressed: () {},
    ),
  )));
}
Posted by: Guest on August-10-2021

Code answers related to "listview flutter give padding to list bottom"

Browse Popular Code Answers by Language