Неожиданные горизонтальные поля в ListTileIOS

Программируем под IOS
Ответить
Anonymous
 Неожиданные горизонтальные поля в ListTile

Сообщение Anonymous »

На этом снимке экрана у меня ListView с тремя пустыми ListTiles. Однако в версии для iOS ListTiles имеют большие горизонтальные поля (показаны фиолетовым цветом), чего мне не хочется. Я пробовал добавить отступы для негативного контента, но ничего не работает. Как мне избавиться от них? Спасибо.
Изображение

class TasksPane extends StatelessWidget with WatchItMixin {
const TasksPane({super.key});

@override
Widget build(BuildContext context) {
final controller = watchIt();
final log = Logger(graphicPrinter);
return Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
IconButton(
onPressed: controller.all,
icon: const FaIcon(Icons.filter_list_off),
tooltip: 'View all tasks',
iconSize: 18.0,
// color: Theme.of(context).highlightColor,
),
IconButton(
onPressed: controller.soon,
icon: const FaIcon(Icons.timer),
tooltip: 'View tasks for this week',
iconSize: 18.0,
),
IconButton(
onPressed: controller.urgent,
icon: const FaIcon(Icons.priority_high),
tooltip: 'View tasks for this week',
iconSize: 18.0,
),
IconButton(
onPressed: controller.today,
icon: const FaIcon(Icons.today),
tooltip: 'View urgent tasks',
iconSize: 18.0,
),
],
),
Expanded(
child: ListView.builder(
itemCount: controller.todos.length,
itemBuilder: (context, index) {
final todo = controller.todos[index];
const child = ListTile();

return Draggable(
data: todo,
feedback: ConstrainedBox(
constraints: BoxConstraints.loose(const Size(500, 60)),
child: const Material(
child: Opacity(
opacity: 0.75,
child: child,
),
),
),
childWhenDragging:
const Opacity(opacity: 0.5, child: child),
onDragEnd: (x) =>
log.i('$todo Drag ended with ${x.wasAccepted}'),
child: child);
}),
),
],
);
}
}


Подробнее здесь: https://stackoverflow.com/questions/786 ... n-listtile
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»