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

View File

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