Answers for "flutter listview item padding"

1

how to give bottom padding in Listview in flutter

// Add a bottom padding to Listview in Flutter
padding: const EdgeInsets.only(bottom: kFloatingActionButtonMargin + 48)
Posted by: Guest on January-05-2021
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 item padding"

Code answers related to "Dart"

Browse Popular Code Answers by Language