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, width: 38,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
color: type.mobileIconBackgroundColor, color: Theme.of(context).brightness == Brightness.light
? type.mobileIconBackgroundColor
: type.mobileIconBackgroundColorDark,
), ),
child: Center( child: Center(
child: FlowySvg( child: FlowySvg(
type.svgData, type.svgData,
blendMode: null,
size: const Size.square(22), size: const Size.square(22),
), ),
), ),

View File

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