fix: some mobile ui bugs (#4823)

* fix: select option editor mobile

* chore: field type icon
This commit is contained in:
Richard Shiue 2024-03-05 21:45:39 +08:00 committed by GitHub
parent b05897d3ab
commit 3b0d82287d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -42,12 +42,13 @@ class OptionTextField extends StatelessWidget {
width: 38,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: type.mobileIconBackgroundColor,
color: Theme.of(context).brightness == Brightness.light
? type.mobileIconBackgroundColor
: type.mobileIconBackgroundColorDark,
),
child: Center(
child: FlowySvg(
type.svgData,
blendMode: null,
size: const Size.square(22),
),
),

View File

@ -84,12 +84,11 @@ class _MobileSelectOptionEditorState extends State<MobileSelectOptionEditor> {
const height = 44.0;
return Stack(
children: [
Align(
alignment: Alignment.centerLeft,
child: showMoreOptions
? AppBarBackButton(onTap: _popOrBack)
: AppBarCloseButton(onTap: _popOrBack),
),
if (showMoreOptions)
Align(
alignment: Alignment.centerLeft,
child: AppBarBackButton(onTap: _popOrBack),
),
SizedBox(
height: 44.0,
child: Align(