@@ -24,34 +24,36 @@ class CreateNewProposalCategorySelection extends StatelessWidget {
2424
2525 @override
2626 Widget build (BuildContext context) {
27- return ConstrainedBox (
28- constraints: const BoxConstraints (maxHeight: 430 ),
29- child: Row (
30- crossAxisAlignment: CrossAxisAlignment .start,
31- children: [
32- Expanded (
33- child: ListView .separated (
34- itemBuilder: (context, index) => _CategoryCard (
35- name: categories[index].formattedName,
36- description: categories[index].shortDescription,
37- ref: categories[index].id,
38- isSelected: categories[index].id == selectedCategory,
39- onCategorySelected: onCategorySelected,
27+ return Expanded (
28+ child: Padding (
29+ padding: const EdgeInsets .only (bottom: 50 ),
30+ child: Row (
31+ crossAxisAlignment: CrossAxisAlignment .start,
32+ children: [
33+ Expanded (
34+ child: ListView .separated (
35+ itemBuilder: (context, index) => _CategoryCard (
36+ name: categories[index].formattedName,
37+ description: categories[index].shortDescription,
38+ ref: categories[index].id,
39+ isSelected: categories[index].id == selectedCategory,
40+ onCategorySelected: onCategorySelected,
41+ ),
42+ separatorBuilder: (context, index) => const SizedBox (height: 16 ),
43+ itemCount: categories.length,
4044 ),
41- separatorBuilder: (context, index) => const SizedBox (height: 16 ),
42- itemCount: categories.length,
4345 ),
44- ),
45- const SizedBox (width : 16 ),
46- Expanded (
47- flex : 2 ,
48- child : _selectedCategory != null
49- ? SingleChildScrollView (
50- child : CategoryCompactDetailView (category : _selectedCategory ! ),
51- )
52- : const _NoneCategorySelected ( ),
53- ) ,
54- ] ,
46+ const SizedBox (width : 16 ),
47+ Expanded (
48+ flex : 2 ,
49+ child : _selectedCategory != null
50+ ? SingleChildScrollView (
51+ child : CategoryCompactDetailView (category : _selectedCategory ! ),
52+ )
53+ : const _NoneCategorySelected (),
54+ ),
55+ ] ,
56+ ) ,
5557 ),
5658 );
5759 }
0 commit comments