mirror of
https://github.com/foss42/apidash.git
synced 2025-08-05 21:10:33 +08:00
refactor
This commit is contained in:
@ -5,7 +5,7 @@ import 'tabs.dart';
|
||||
class RequestPane extends StatefulWidget {
|
||||
const RequestPane({
|
||||
super.key,
|
||||
required this.activeId,
|
||||
required this.selectedId,
|
||||
required this.codePaneVisible,
|
||||
this.tabIndex,
|
||||
this.onPressedCodeButton,
|
||||
@ -14,7 +14,7 @@ class RequestPane extends StatefulWidget {
|
||||
this.showIndicators = const [false, false, false],
|
||||
});
|
||||
|
||||
final String? activeId;
|
||||
final String? selectedId;
|
||||
final bool codePaneVisible;
|
||||
final int? tabIndex;
|
||||
final void Function()? onPressedCodeButton;
|
||||
@ -76,7 +76,7 @@ class _RequestPaneState extends State<RequestPane>
|
||||
),
|
||||
),
|
||||
TabBar(
|
||||
key: Key(widget.activeId!),
|
||||
key: Key(widget.selectedId!),
|
||||
controller: _controller,
|
||||
overlayColor: kColorTransparentState,
|
||||
onTap: widget.onTapTabBar,
|
||||
|
Reference in New Issue
Block a user