Answers for "flutter listview.builder item padding"

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
-1

flutter listview top padding

you should wrap the ListView with a MediaQuery.removePadding widget (with removeTop: true).
Posted by: Guest on June-04-2020

Code answers related to "flutter listview.builder item padding"

Code answers related to "Dart"

Browse Popular Code Answers by Language