mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
feat: enhance dashbot default page
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import 'package:apidash_design_system/apidash_design_system.dart'
|
import 'package:apidash_design_system/apidash_design_system.dart'
|
||||||
show kVSpacer20, kVSpacer16, kVSpacer10;
|
show kVSpacer20, kVSpacer16, kVSpacer10;
|
||||||
|
import '../../../features/chat/models/chat_models.dart';
|
||||||
|
import '../../../features/home/view/widgets/home_screen_task_button.dart';
|
||||||
|
import '../../routes/dashbot_routes.dart';
|
||||||
import '../../utils/dashbot_icons.dart';
|
import '../../utils/dashbot_icons.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
@@ -33,6 +36,41 @@ class DashbotDefaultPage extends StatelessWidget {
|
|||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
|
||||||
),
|
),
|
||||||
|
kVSpacer16,
|
||||||
|
Wrap(
|
||||||
|
alignment: WrapAlignment.center,
|
||||||
|
spacing: 8,
|
||||||
|
runSpacing: 8,
|
||||||
|
children: [
|
||||||
|
HomeScreenTaskButton(
|
||||||
|
label: "🤖 Open Chat",
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pushNamed(
|
||||||
|
DashbotRoutes.dashbotChat,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
HomeScreenTaskButton(
|
||||||
|
label: "📥 Import cURL",
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pushNamed(
|
||||||
|
DashbotRoutes.dashbotChat,
|
||||||
|
arguments: ChatMessageType.importCurl,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
HomeScreenTaskButton(
|
||||||
|
label: "📄 Import OpenAPI",
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pushNamed(
|
||||||
|
DashbotRoutes.dashbotChat,
|
||||||
|
arguments: ChatMessageType.importOpenApi,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
kVSpacer16,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user