- Updated import paths across multiple files to reflect the new package name. - Changed application name and identifiers in CMakeLists.txt, Runner.rc, and other configuration files. - Modified web index.html and manifest.json to update the app title and name. - Adjusted macOS and Windows project settings to align with the new application name. - Ensured consistency in naming across all relevant files and directories.
53 lines
1.5 KiB
Dart
53 lines
1.5 KiB
Dart
import 'package:on_field_work/helpers/theme/app_theme.dart';
|
|
import 'package:on_field_work/helpers/widgets/my_constant.dart';
|
|
import 'package:on_field_work/helpers/widgets/my_screen_media.dart';
|
|
import 'package:on_field_work/helpers/widgets/my_text_style.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class My {
|
|
// entry point of the package
|
|
init() {}
|
|
|
|
static void changeTheme(ThemeData theme) {
|
|
AppTheme.theme = theme;
|
|
}
|
|
|
|
static void setTextDirection(TextDirection direction) {
|
|
AppTheme.textDirection = direction;
|
|
}
|
|
|
|
static void changeFontFamily(GoogleFontFunction fontFamily) {
|
|
MyTextStyle.changeFontFamily(fontFamily);
|
|
}
|
|
|
|
static void changeDefaultFontWeight(Map<int, FontWeight> defaultFontWeight) {
|
|
MyTextStyle.changeDefaultFontWeight(defaultFontWeight);
|
|
}
|
|
|
|
static void changeDefaultTextFontWeight(
|
|
Map<MyTextType, int> defaultFontWeight) {
|
|
MyTextStyle.changeDefaultTextFontWeight(defaultFontWeight);
|
|
}
|
|
|
|
static void changeDefaultTextSize(Map<MyTextType, double> defaultTextSize) {
|
|
MyTextStyle.changeDefaultTextSize(defaultTextSize);
|
|
}
|
|
|
|
static void changeDefaultLetterSpacing(
|
|
Map<MyTextType, double> defaultLetterSpacing) {
|
|
MyTextStyle.changeDefaultLetterSpacing(defaultLetterSpacing);
|
|
}
|
|
|
|
static setConstant(MyConstantData constantData) {
|
|
MyConstant.setConstant(constantData);
|
|
}
|
|
|
|
static setFlexSpacing(double spacing) {
|
|
MyScreenMedia.flexSpacing = spacing;
|
|
}
|
|
|
|
static setFlexColumns(int columns) {
|
|
MyScreenMedia.flexColumns = columns;
|
|
}
|
|
}
|