mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 11:57:39 +08:00
fix: review changes
This commit is contained in:
@@ -42,16 +42,16 @@ class RequestResponseTabbar extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: Container(
|
||||
width: 280,
|
||||
height: 32,
|
||||
width: kReqResTabWidth,
|
||||
height: kReqResTabHeight,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
borderRadius: kBorderRadius20,
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.outlineVariant,
|
||||
),
|
||||
),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
borderRadius: kBorderRadius20,
|
||||
child: TabBar(
|
||||
dividerColor: Colors.transparent,
|
||||
indicatorWeight: 0.0,
|
||||
@@ -63,18 +63,18 @@ class RequestResponseTabbar extends StatelessWidget {
|
||||
color: Theme.of(context).colorScheme.onPrimary,
|
||||
),
|
||||
unselectedLabelStyle: kTextStyleTab,
|
||||
splashBorderRadius: BorderRadius.circular(50),
|
||||
splashBorderRadius: kBorderRadius20,
|
||||
indicator: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
borderRadius: kBorderRadius20,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
controller: controller,
|
||||
tabs: const <Widget>[
|
||||
Tab(
|
||||
text: "Request",
|
||||
text: kLabelRequest,
|
||||
),
|
||||
Tab(
|
||||
text: "Response",
|
||||
text: kLabelResponse,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -9,7 +9,7 @@ import '../../home_page/collection_pane.dart';
|
||||
import '../../home_page/editor_pane/url_card.dart';
|
||||
import '../../home_page/editor_pane/details_card/code_pane.dart';
|
||||
import '../../home_page/editor_pane/editor_default.dart';
|
||||
import '../../common/main_editor_widgets.dart';
|
||||
import '../../common_widgets/common_widgets.dart';
|
||||
import '../widgets/page_base.dart';
|
||||
import 'request_response_tabs.dart';
|
||||
|
||||
@@ -35,9 +35,9 @@ class _RequestResponsePageState extends ConsumerState<RequestResponsePage>
|
||||
ref.watch(selectedRequestModelProvider.select((value) => value?.name)));
|
||||
final TabController requestResponseTabController =
|
||||
useTabController(initialLength: 2, vsync: this);
|
||||
return TwoDrawerScaffold(
|
||||
return DrawerSplitView(
|
||||
scaffoldKey: widget.scaffoldKey,
|
||||
title: ScaffoldTitle(
|
||||
title: EditorTitle(
|
||||
title: name,
|
||||
onSelected: (ItemMenuOption item) {
|
||||
if (item == ItemMenuOption.edit) {
|
||||
@@ -125,12 +125,15 @@ class RequestResponsePageBottombar extends ConsumerWidget {
|
||||
},
|
||||
icon: const Icon(Icons.code_rounded),
|
||||
),
|
||||
SendButton(
|
||||
onTap: () {
|
||||
if (requestResponseTabController.index != 1) {
|
||||
requestResponseTabController.animateTo(1);
|
||||
}
|
||||
},
|
||||
SizedBox(
|
||||
height: 36,
|
||||
child: SendRequestButton(
|
||||
onTap: () {
|
||||
if (requestResponseTabController.index != 1) {
|
||||
requestResponseTabController.animateTo(1);
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user