Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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: () {},
    ),
  )));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #listview #flutter #give #padding #list #bottom
ADD COMMENT
Topic
Name
5+1 =