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/button/icon_button_web.dart';
|
||||
import 'package:flex_color_picker/flex_color_picker.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -45,11 +46,11 @@ class ColorPickerDialogBuilder {
|
||||
title: Text(
|
||||
title ?? '',
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20,
|
||||
color: Colors.black)),
|
||||
titleTextStyle: const TextStyle(
|
||||
titleTextStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 20,
|
||||
color: Colors.black),
|
||||
@@ -116,7 +117,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionCancel ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal),
|
||||
@@ -126,7 +127,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionResetDefault ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.normal),
|
||||
@@ -137,7 +138,7 @@ class ColorPickerDialogBuilder {
|
||||
textActionSetColor ?? '',
|
||||
radius: 5,
|
||||
height: 30,
|
||||
textStyle: const TextStyle(
|
||||
textStyle: ThemeUtils.defaultTextStyleInterFont.copyWith(
|
||||
color: Colors.white,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500),
|
||||
|
||||
@@ -38,7 +38,7 @@ class DownloadingFileDialogBuilder {
|
||||
Widget build() {
|
||||
return CupertinoAlertDialog(
|
||||
key: _key ?? const Key('DownloadingFileBuilder'),
|
||||
title: Text(_title, style: const TextStyle(fontSize: 17.0, color: Colors.black)),
|
||||
title: Text(_title, style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 17.0, color: Colors.black)),
|
||||
content: Padding(
|
||||
padding: const EdgeInsets.only(top: 16.0, left: 16.0, right: 16.0),
|
||||
child: Center(
|
||||
@@ -51,7 +51,7 @@ class DownloadingFileDialogBuilder {
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
_content,
|
||||
style: const TextStyle(fontSize: 13.0, color: Colors.black),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 13.0, color: Colors.black),
|
||||
softWrap: false,
|
||||
maxLines: 1)
|
||||
],
|
||||
@@ -63,7 +63,7 @@ class DownloadingFileDialogBuilder {
|
||||
padding: const EdgeInsets.only(bottom: kIsWeb ? 16 : 0, top: kIsWeb ? 16 : 0),
|
||||
child: TextButton(
|
||||
onPressed: () => _onCancelDownloadActionClick?.call(),
|
||||
child: Text(_actionText, style: const TextStyle(fontSize: 17.0, color: AppColor.appColor)),
|
||||
child: Text(_actionText, style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 17.0, color: AppColor.appColor)),
|
||||
))
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user