diff --git a/lib/consts.dart b/lib/consts.dart index 54d7bc1e..8a9cd805 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -5,6 +5,7 @@ final codeStyle = GoogleFonts.sourceCodePro(); const textStyleButton = TextStyle(fontWeight: FontWeight.bold); +final colorTransparent = MaterialStateProperty.all(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 } diff --git a/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane.dart b/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane.dart index 598cdb86..c4b8bcc2 100644 --- a/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane.dart +++ b/lib/screens/home_page/editor_pane/details_card/request_pane/request_pane.dart @@ -22,7 +22,7 @@ class _EditRequestPaneState extends ConsumerState super.initState(); _controller = TabController( length: 3, - animationDuration: const Duration(milliseconds: 200), + animationDuration: tabAnimationDuration, vsync: this, ); } @@ -39,7 +39,7 @@ class _EditRequestPaneState extends ConsumerState TabBar( key: Key(activeId), controller: _controller, - overlayColor: MaterialStateProperty.all(Colors.transparent), + overlayColor: colorTransparent, onTap: (index) { ref .read(collectionStateNotifierProvider.notifier)