FConfig.init constructor

FConfig.init({
  1. ToastShow? toast,
  2. SwitchThemeBrightness? switchTB,
  3. IconThemeGenerate? iconTheme,
  4. TextThemeGenerate? textTheme,
  5. ProcessingExtend? processingExtend,
  6. RespDataJson? respDataJson,
  7. bool screenEnable = true,
  8. BaseOptions? baseOptions,
  9. JsonDecodeCallback? parseJson,
  10. DioInit? dioInit,
  11. ApiInterceptorOnRequest? onRequest,
  12. bool extraSaveJson = true,
  13. BuildContext? context,
  14. num pageWidth = 1080,
  15. num pageHeight = 1920,
  16. num rootLR = 26,
  17. num rootTB = 26,
  18. num padding = 20,
  19. num listSpace = 26,
  20. num themeFontSize = 22,
  21. num buttonOfLeftR = 48,
  22. num buttonOfTopB = 16,
  23. num buttonOfSize = 72,
  24. num buttonOfTextSize = 40,
  25. num? buttonOfSizeH,
  26. num buttonOfPressedOpacity = 0.4,
  27. num themeSelectedIconSize = 46,
  28. num themeUnselectedIconSize = 46,
  29. num themeSelectedLabelSize = 25,
  30. num themeUnselectedLabelSize = 25,
  31. num dialogViewOfConfirmHeight = 140,
  32. num dialogViewOfTitleHeight = 96,
  33. num dialogViewOfTitleSize = 60,
  34. num dialogViewOfTextSize = 40,
  35. num dialogViewOfHorizontal = 40,
  36. num dialogViewOfVertical = 24,
  37. num dialogViewOfLoadWidth = 500,
  38. num dialogViewOfLoadTop = 96,
  39. num dialogViewOfTop = 48,
  40. num dialogViewOfMinHeight = 80,
  41. num dialogListSelectOfPaddingChild = 56,
  42. num dialogListSelectOfWirePadding = 160,
  43. num imageBrowseOfChildHeight = 1028,
  44. num imageBrowseOfChildWidth = 1028,
  45. num imageBrowseOfHeight = 1920,
  46. num imageBrowseOfWitch = 1080,
  47. num imageBrowseOfOperatingTopPadding = 480,
  48. num imageBrowseOfOperatingTop = 100,
  49. num imageBrowseOfCloseSize = 90,
  50. bool imageBrowseOfSquare = true,
  51. Color imageBrowseOfCloseColor = const Color(0x22000000),
  52. double titleActionOfIconSize = 72,
  53. double titleActionOfTxtSize = 25,
  54. num titleActionOfIconPadding = 20,
  55. num titleActionOfTopBSize = 32,
  56. num titleActionOfLeftRSize = 48,
  57. num radius = 20,
  58. num radiusOfCircle = 100,
  59. num titleWidgetOfHeight = 144,
  60. num titleWidgetOfActionSpacing = 32,
  61. num singleLineOfMinHeight = 144,
  62. num singleLineOfIconHeight = 90,
  63. num singleLineOfNameLeftPadding = 20,
  64. num singleLineOfNameRightPadding = 80,
  65. num singleLineOfLeftRight = 32,
  66. num singleLineOfTopBottom = 16,
  67. num singleLineOfUrlSize = 200,
  68. num singleLineOfRadius = 20,
  69. bool singleLineOfIsPrimary = false,
  70. IconData singleLineOfRightIconData = Icons.chevron_right,
  71. TextStyle? singleLineOfNameTxtStyle,
  72. double touchWidgetOfPressedOpacity = 0.4,
  73. double touchWidgetOfPadding = 0.0,
  74. num iconTextOfSpacing = 4,
  75. num iconTextOfIconBottom = 8,
  76. num myBodyOfPadding = 32,
  77. num? myBodyOfSpace,
  78. num checkboxOfSize = 50,
  79. num checkboxOfSpacing = 16,
  80. num checkboxOfPadding = 8,
  81. num checkboxOfBorderWidth = 2,
  82. num cardExOfPaddingSize = 20,
  83. num cardExOfMarginSize = 0,
  84. num editTextOfIconRightSpace = 48,
  85. num editTextOfSignLeftPadding = 20,
  86. num space = 8,
  87. num mainPadding = 32,
  88. num crossPadding = 32,
  89. num textOne = 40,
  90. num textTwo = 35,
  91. num textThree = 30,
  92. num textFour = 25,
  93. num textFive = 20,
  94. num? listIntervalViewOfCacheExtent,
  95. num? gridIntervalViewOfCacheExtent,
})

默认 1920*1080

Implementation

FConfig.init({
  ToastShow? toast,
  SwitchThemeBrightness? switchTB,
  IconThemeGenerate? iconTheme,
  TextThemeGenerate? textTheme,
  ProcessingExtend? processingExtend,
  RespDataJson? respDataJson,
  bool screenEnable = true,
  BaseOptions? baseOptions,
  JsonDecodeCallback? parseJson,
  DioInit? dioInit,
  ApiInterceptorOnRequest? onRequest,
  bool extraSaveJson = true,
  this.context,
  this.pageWidth = 1080,
  this.pageHeight = 1920,
  this.rootLR = 26,
  this.rootTB = 26,
  this.padding = 20,
  this.listSpace = 26,
  this.themeFontSize = 22,
  this.buttonOfLeftR = 48,
  this.buttonOfTopB = 16,
  this.buttonOfSize = 72,
  this.buttonOfTextSize = 40,
  this.buttonOfSizeH,
  this.buttonOfPressedOpacity = 0.4,
  this.themeSelectedIconSize = 46,
  this.themeUnselectedIconSize = 46,
  this.themeSelectedLabelSize = 25,
  this.themeUnselectedLabelSize = 25,
  this.dialogViewOfConfirmHeight = 140,
  this.dialogViewOfTitleHeight = 96,
  this.dialogViewOfTitleSize = 60,
  this.dialogViewOfTextSize = 40,
  this.dialogViewOfHorizontal = 40,
  this.dialogViewOfVertical = 24,
  this.dialogViewOfLoadWidth = 500,
  this.dialogViewOfLoadTop = 96,
  this.dialogViewOfTop = 48,
  this.dialogViewOfMinHeight = 80,
  this.dialogListSelectOfPaddingChild = 56,
  this.dialogListSelectOfWirePadding = 160,
  this.imageBrowseOfChildHeight = 1028,
  this.imageBrowseOfChildWidth = 1028,
  this.imageBrowseOfHeight = 1920,
  this.imageBrowseOfWitch = 1080,
  this.imageBrowseOfOperatingTopPadding = 480,
  this.imageBrowseOfOperatingTop = 100,
  this.imageBrowseOfCloseSize = 90,
  this.imageBrowseOfSquare = true,
  this.imageBrowseOfCloseColor = const Color(0x22000000),
  this.titleActionOfIconSize = 72,
  this.titleActionOfTxtSize = 25,
  this.titleActionOfIconPadding = 20,
  this.titleActionOfTopBSize = 32,
  this.titleActionOfLeftRSize = 48,
  this.radius = 20,
  this.radiusOfCircle = 100,
  this.titleWidgetOfHeight = 144,
  this.titleWidgetOfActionSpacing = 32,
  this.singleLineOfMinHeight = 144,
  this.singleLineOfIconHeight = 90,
  this.singleLineOfNameLeftPadding = 20,
  this.singleLineOfNameRightPadding = 80,
  this.singleLineOfLeftRight = 32,
  this.singleLineOfTopBottom = 16,
  this.singleLineOfUrlSize = 200,
  this.singleLineOfRadius = 20,
  this.singleLineOfIsPrimary = false,
  this.singleLineOfRightIconData = Icons.chevron_right,
  this.singleLineOfNameTxtStyle,
  this.touchWidgetOfPressedOpacity = 0.4,
  this.touchWidgetOfPadding = 0.0,
  this.iconTextOfSpacing = 4,
  this.iconTextOfIconBottom = 8,
  this.myBodyOfPadding = 32,
  this.myBodyOfSpace,
  this.checkboxOfSize = 50,
  this.checkboxOfSpacing = 16,
  this.checkboxOfPadding = 8,
  this.checkboxOfBorderWidth = 2,
  this.cardExOfPaddingSize = 20,
  this.cardExOfMarginSize = 0,
  this.editTextOfIconRightSpace = 48,
  this.editTextOfSignLeftPadding = 20,
  this.space = 8,
  this.mainPadding = 32,
  this.crossPadding = 32,
  this.textOne = 40,
  this.textTwo = 35,
  this.textThree = 30,
  this.textFour = 25,
  this.textFive = 20,
  this.listIntervalViewOfCacheExtent,
  this.gridIntervalViewOfCacheExtent,
}) {
  initFastDevelopOfRespData(processingExtend, respDataJson);
  initFastDevelopOfHttp(baseOptions, parseJson, dioInit);
  initFastDevelopOfApiInterceptor(onRequest, extraSaveJson);
  initFastDevelopOfData(toast);
  initFastDevelopOfRootLayout(switchTB);
  initFastDevelopOfTitle(iconTheme, textTheme);
  ScreenUtils.enable = screenEnable;
  _instance = this;
}