Use fontFamily for all style in Text widget
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/bottom_popup/cupertino_action_sheet_builder.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
@@ -81,8 +82,13 @@ mixin PopupContextMenuActionMixin {
|
||||
cursor: PlatformInfo.isWeb ? WidgetStateMouseCursor.clickable : MouseCursor.defer,
|
||||
child: CupertinoActionSheetAction(
|
||||
child: Text(
|
||||
AppLocalizations.of(context).cancel,
|
||||
style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 20, color: AppColor.colorTextButton)),
|
||||
AppLocalizations.of(context).cancel,
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 20,
|
||||
color: AppColor.colorTextButton,
|
||||
),
|
||||
),
|
||||
onPressed: () => popBack(),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -30,7 +30,7 @@ mixin PopupMenuWidgetMixin {
|
||||
const SizedBox(width: 12),
|
||||
Expanded(child: Text(
|
||||
nameAction,
|
||||
style: styleName ?? const TextStyle(
|
||||
style: styleName ?? ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontSize: 17,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: Colors.black)
|
||||
|
||||
Reference in New Issue
Block a user