mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-22 15:07:21 +00:00
chore(flutter_desktop): improve title and heading appearance (#6658)
This commit is contained in:
parent
cee0e2ed42
commit
8f58c39448
@ -103,7 +103,7 @@ class _InnerCoverTitleState extends State<_InnerCoverTitle> {
|
|||||||
final fontStyle = Theme.of(context)
|
final fontStyle = Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
.bodyMedium!
|
.bodyMedium!
|
||||||
.copyWith(fontSize: 38.0, fontWeight: FontWeight.w700);
|
.copyWith(fontSize: 40.0, fontWeight: FontWeight.w700);
|
||||||
final width = context.read<DocumentAppearanceCubit>().state.width;
|
final width = context.read<DocumentAppearanceCubit>().state.width;
|
||||||
return BlocConsumer<ViewBloc, ViewState>(
|
return BlocConsumer<ViewBloc, ViewState>(
|
||||||
listenWhen: (previous, current) =>
|
listenWhen: (previous, current) =>
|
||||||
|
@ -173,8 +173,6 @@ class EditorStyleCustomizer {
|
|||||||
final String? fontFamily;
|
final String? fontFamily;
|
||||||
final List<double> fontSizes;
|
final List<double> fontSizes;
|
||||||
final double fontSize;
|
final double fontSize;
|
||||||
final FontWeight fontWeight =
|
|
||||||
level <= 2 ? FontWeight.w700 : FontWeight.w600;
|
|
||||||
if (UniversalPlatform.isMobile) {
|
if (UniversalPlatform.isMobile) {
|
||||||
final state = context.read<DocumentPageStyleBloc>().state;
|
final state = context.read<DocumentPageStyleBloc>().state;
|
||||||
fontFamily = state.fontFamily;
|
fontFamily = state.fontFamily;
|
||||||
@ -192,7 +190,7 @@ class EditorStyleCustomizer {
|
|||||||
fontSize,
|
fontSize,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return baseTextStyle(fontFamily, fontWeight: fontWeight).copyWith(
|
return baseTextStyle(fontFamily, fontWeight: FontWeight.w600).copyWith(
|
||||||
fontSize: fontSizes.elementAtOrNull(level - 1) ?? fontSize,
|
fontSize: fontSizes.elementAtOrNull(level - 1) ?? fontSize,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user