mirror of
https://github.com/foss42/apidash.git
synced 2025-05-29 21:06:01 +08:00
new constants
This commit is contained in:
@ -5,6 +5,7 @@ final codeStyle = GoogleFonts.sourceCodePro();
|
||||
|
||||
const textStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||
|
||||
final colorTransparent = MaterialStateProperty.all<Color>(Colors.transparent);
|
||||
const colorBg = Colors.white;
|
||||
final colorGrey50 = Colors.grey.shade50;
|
||||
final colorGrey100 = Colors.grey.shade100;
|
||||
@ -28,6 +29,10 @@ const p8 = EdgeInsets.all(8);
|
||||
const ps8 = EdgeInsets.only(left: 8);
|
||||
const p10 = EdgeInsets.all(10);
|
||||
|
||||
const tabAnimationDuration = Duration(milliseconds: 200);
|
||||
|
||||
const randRange = 100000;
|
||||
|
||||
enum HTTPVerb { get, head, post, put, patch, delete }
|
||||
|
||||
enum ContentType { json, text }
|
||||
|
@ -22,7 +22,7 @@ class _EditRequestPaneState extends ConsumerState<EditRequestPane>
|
||||
super.initState();
|
||||
_controller = TabController(
|
||||
length: 3,
|
||||
animationDuration: const Duration(milliseconds: 200),
|
||||
animationDuration: tabAnimationDuration,
|
||||
vsync: this,
|
||||
);
|
||||
}
|
||||
@ -39,7 +39,7 @@ class _EditRequestPaneState extends ConsumerState<EditRequestPane>
|
||||
TabBar(
|
||||
key: Key(activeId),
|
||||
controller: _controller,
|
||||
overlayColor: MaterialStateProperty.all<Color>(Colors.transparent),
|
||||
overlayColor: colorTransparent,
|
||||
onTap: (index) {
|
||||
ref
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
|
Reference in New Issue
Block a user