FConfig.init constructor
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,
- BuildContext? context,
- num pageWidth = 1080,
- num pageHeight = 1920,
- num rootLR = 26,
- num rootTB = 26,
- num padding = 20,
- num listSpace = 26,
- num themeFontSize = 22,
- num buttonOfLeftR = 48,
- num buttonOfTopB = 16,
- num buttonOfSize = 72,
- num buttonOfTextSize = 40,
- num? buttonOfSizeH,
- num buttonOfPressedOpacity = 0.4,
- num themeSelectedIconSize = 46,
- num themeUnselectedIconSize = 46,
- num themeSelectedLabelSize = 25,
- num themeUnselectedLabelSize = 25,
- num dialogViewOfConfirmHeight = 140,
- num dialogViewOfTitleHeight = 96,
- num dialogViewOfTitleSize = 60,
- num dialogViewOfTextSize = 40,
- num dialogViewOfHorizontal = 40,
- num dialogViewOfVertical = 24,
- num dialogViewOfLoadWidth = 500,
- num dialogViewOfLoadTop = 96,
- num dialogViewOfTop = 48,
- num dialogViewOfMinHeight = 80,
- num dialogListSelectOfPaddingChild = 56,
- num dialogListSelectOfWirePadding = 160,
- num imageBrowseOfChildHeight = 1028,
- num imageBrowseOfChildWidth = 1028,
- num imageBrowseOfHeight = 1920,
- num imageBrowseOfWitch = 1080,
- num imageBrowseOfOperatingTopPadding = 480,
- num imageBrowseOfOperatingTop = 100,
- num imageBrowseOfCloseSize = 90,
- bool imageBrowseOfSquare = true,
- Color imageBrowseOfCloseColor = const Color(0x22000000),
- double titleActionOfIconSize = 72,
- double titleActionOfTxtSize = 25,
- num titleActionOfIconPadding = 20,
- num titleActionOfTopBSize = 32,
- num titleActionOfLeftRSize = 48,
- num radius = 20,
- num radiusOfCircle = 100,
- num titleWidgetOfHeight = 144,
- num titleWidgetOfActionSpacing = 32,
- num singleLineOfMinHeight = 144,
- num singleLineOfIconHeight = 90,
- num singleLineOfNameLeftPadding = 20,
- num singleLineOfNameRightPadding = 80,
- num singleLineOfLeftRight = 32,
- num singleLineOfTopBottom = 16,
- num singleLineOfUrlSize = 200,
- num singleLineOfRadius = 20,
- bool singleLineOfIsPrimary = false,
- IconData singleLineOfRightIconData = Icons.chevron_right,
- TextStyle? singleLineOfNameTxtStyle,
- double touchWidgetOfPressedOpacity = 0.4,
- double touchWidgetOfPadding = 0.0,
- num iconTextOfSpacing = 4,
- num iconTextOfIconBottom = 8,
- num myBodyOfPadding = 32,
- num? myBodyOfSpace,
- num checkboxOfSize = 50,
- num checkboxOfSpacing = 16,
- num checkboxOfPadding = 8,
- num checkboxOfBorderWidth = 2,
- num cardExOfPaddingSize = 20,
- num cardExOfMarginSize = 0,
- num editTextOfIconRightSpace = 48,
- num editTextOfSignLeftPadding = 20,
- num space = 8,
- num mainPadding = 32,
- num crossPadding = 32,
- num textOne = 40,
- num textTwo = 35,
- num textThree = 30,
- num textFour = 25,
- num textFive = 20,
- num? listIntervalViewOfCacheExtent,
- 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;
}