Skip to content

Commit

Permalink
feat(pkgs): Update bbcode editor for bold trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Feb 27, 2024
1 parent f221ae9 commit f5b6626
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/features/post/view/post_edit_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ class _PostEditPageState extends State<PostEditPage> {
return Row(children: ret.insertBetween(sizedBoxW10H10));
}

/// Build the row to control a
Widget _buildControlRow(BuildContext context, PostEditState state) {
return Row(
children: [
Expand All @@ -291,6 +292,15 @@ class _PostEditPageState extends State<PostEditPage> {
? () async => _showAdditionalOptionBottomSheet(context, state)
: null,
),
IconButton(
icon: Icon(
Icons.format_bold_outlined,
color:
// FIXME: Update state.
bbcodeController.isBold ? Theme.of(context).primaryColor : null,
),
onPressed: () async => bbcodeController.triggerBold(),
),
const Spacer(),
ElevatedButton.icon(
icon: state.status == PostEditStatus.uploading
Expand Down

0 comments on commit f5b6626

Please sign in to comment.