mirror of
https://github.com/foss42/apidash.git
synced 2025-06-19 21:39:14 +08:00
feat: Improve import dialog UI with better padding and spacing
This commit is contained in:
@ -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),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -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>(
|
||||||
|
Reference in New Issue
Block a user