169 похожих чатов

Class CardWidget extends StatelessWidget { const CardWidget({

Key? key,
}) : super(key: key);

@override
Widget build(BuildContext context) {
return ListView.builder(
itemCount: Entity.listOfDescriptions.length,
itemBuilder: (BuildContext context, int index) {
return Center(
child: Wrap(
spacing: 20,
runSpacing: 20,
children: [
WhiteSquare(
description: Entity.listOfDescriptions[index],
url: Entity.listOfUrls[index],
name: Entity.listOfNames[index],
text: Entity.listOfTexts[index],
svgPicture: Entity.listOfImageAssets[index]
),
],
),
);
});
}
}

3 ответов

2 просмотра

Тут у тебя нет бокса

CardWidget между 2 sizedBox был в Column?

Мади-Айжалбы Автор вопроса
Andrey
CardWidget между 2 sizedBox был в Column?

class CardWidget extends StatelessWidget { const CardWidget({ Key? key, }) : super(key: key); @override Widget build(BuildContext context) { return GridView.builder( physics: const BouncingScrollPhysics(), gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 2, ), itemCount: Entity.listOfDescriptions.length, itemBuilder: (BuildContext context, int index) { return Center( child: Wrap( children: [ const SizedBox(height: 20), WhiteSquare( description: Entity.listOfDescriptions[index], url: Entity.listOfUrls[index], name: Entity.listOfNames[index], text: Entity.listOfTexts[index], svgPicture: Entity.listOfImageAssets[index], ), const SizedBox(height: 20), ]), ); }, ); } }

Похожие вопросы

Обсуждают сегодня

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
70
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
25
Книга Юрова В.И пойдёт для обучения?
Botsman
24
Люди добрые, помогите с идеями, потому что свои закончились. У клиента падает софтина в момент инициализации модуля OtlEventMonitor на RegisterWindowMessage('Gp/OtlTaskEvents/...
Михаил Усков
7
$params = [ 'formid' => 'feedbackForm', 'formTpl' => '@CODE: <form class="form-validate" data-id="ajax_form"> <fieldset class="margin-bottom-md"> ...
Pathologic
1
> Примечательно, что новый владелец удаляет из GitHub любые жалобы, указывающие на подозрительную активность или смену владельца, и, видимо, рассчитывает на то, что пользовате...
Alex Sherbakov
2
GridView fully ignored first parent(SizedBox), and take width from second parent(Container). How can I constrain GridView by first parent? Widget build(BuildContext context) {...
Hamster
1
Hey there Which is the best Linux destro for developers (coding)? To my research on reddit, they said Linux mint is good for mid level spec and Ubuntu for high Lev hardwar...
Wiz 🪄
11
И ещё вопрос: можно ли типа как на дос как-то запариться и с помощью прерываний выводить текст, вместо функции printf ?
НѣкъиⰘижєжєиꙁъвьсєсвѣтьноѣсѣтиѥсть•
34
а мы ещё не созрели до того, чтобы создать отдельный чатик про настройку редакторов?
Cheese Syrowiecki
16
Карта сайта