feat: Improve import dialog UI with better padding and spacing

This commit is contained in:
bavitha01
2025-02-23 02:27:46 +05:30
parent 17f2a56512
commit b76f5c48fb
2 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,8 @@ showImportDialog({
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const Text("Import "), const Text("Import ",style: const TextStyle(fontWeight: FontWeight.bold)),
const SizedBox(width:8),
DropdownButtonImportFormat( DropdownButtonImportFormat(
importFormat: fmt, importFormat: fmt,
onChanged: (format) { onChanged: (format) {
@ -38,9 +39,11 @@ showImportDialog({
), ),
], ],
), ),
const SizedBox(height:10),
DragAndDropArea( DragAndDropArea(
onFileDropped: onFileDropped, onFileDropped: onFileDropped,
), ),
const SizedBox(height:12),
], ],
), ),
); );

View File

@ -29,7 +29,8 @@ class SidebarTopMenu extends StatelessWidget {
iconSize: 14, iconSize: 14,
offset: offset, offset: offset,
onSelected: onSelected, onSelected: onSelected,
shape: shape, shape: RoundedRectangleBorder (borderRadius: BorderRadius. circular (12)),
menuPadding: const EdgeInsets.symmetric(vertical: 3, horizontal: 8),
itemBuilder: (BuildContext context) => SidebarMenuOption.values itemBuilder: (BuildContext context) => SidebarMenuOption.values
.map<PopupMenuEntry<SidebarMenuOption>>( .map<PopupMenuEntry<SidebarMenuOption>>(
(e) => PopupMenuItem<SidebarMenuOption>( (e) => PopupMenuItem<SidebarMenuOption>(