Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: use theme.of(context) text theme in board (#1453)
Richard Shiued7f14db6abef
diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dartindex 822749e3f2..f5252a178a 100644--- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart+++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart@@ -2,7 +2,6 @@ import 'package:app_flowy/plugins/board/application/card/board_text_cell_bloc.daimport 'package:app_flowy/plugins/grid/application/cell/cell_service/cell_service.dart';import 'package:app_flowy/plugins/grid/presentation/widgets/cell/cell_builder.dart';import 'package:flowy_infra/size.dart';-import 'package:flowy_infra/text_style.dart';import 'package:flowy_infra_ui/style_widget/text.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';@@ -153,7 +152,7 @@ class _BoardTextCellState extends State<BoardTextCell> {onChanged: (value) => focusChanged(),onEditingComplete: () => focusNode.unfocus(),maxLines: null,- style: TextStyles.body1.size(FontSizes.s14),+ style: Theme.of(context).textTheme.bodyMedium!.size(FontSizes.s14),decoration: InputDecoration(// Magic number 4 makes the textField take up the same space as FlowyTextcontentPadding: EdgeInsets.symmetric(diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dartindex d6d9fa2c4b..ab7ce3e84d 100644--- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart+++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart@@ -1,7 +1,6 @@import 'package:app_flowy/plugins/board/application/card/board_url_cell_bloc.dart';import 'package:app_flowy/plugins/grid/application/cell/cell_service/cell_service.dart';import 'package:flowy_infra/size.dart';-import 'package:flowy_infra/text_style.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:textstyle_extensions/textstyle_extensions.dart';@@ -54,10 +53,12 @@ class _BoardUrlCellState extends State<BoardUrlCell> {textAlign: TextAlign.left,text: TextSpan(text: state.content,- style: TextStyles.general(- fontSize: FontSizes.s14,- color: Theme.of(context).colorScheme.onPrimaryContainer,- ).underline,+ style: Theme.of(context)+ .textTheme+ .bodyMedium!+ .size(FontSizes.s14)+ .textColor(Theme.of(context).colorScheme.primary)+ .underline,),),),