mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 04:22:28 +00:00
Enhanced sizing of SpaceDetailsForm and SpaceIconPicker.
This commit is contained in:
@ -30,18 +30,25 @@ class SpaceDetailsForm extends StatelessWidget {
|
|||||||
buildWhen: (previous, current) => previous != current,
|
buildWhen: (previous, current) => previous != current,
|
||||||
builder: (context, space) {
|
builder: (context, space) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: title,
|
title: DefaultTextStyle(
|
||||||
|
style: context.textTheme.titleLarge!.copyWith(
|
||||||
|
fontSize: 30,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
color: ColorsManager.blackColor,
|
||||||
|
),
|
||||||
|
child: title,
|
||||||
|
),
|
||||||
backgroundColor: ColorsManager.white,
|
backgroundColor: ColorsManager.white,
|
||||||
content: SizedBox(
|
content: SizedBox(
|
||||||
height: context.screenHeight * 0.3,
|
height: context.screenHeight * 0.3,
|
||||||
width: context.screenWidth * 0.5,
|
width: context.screenWidth * 0.4,
|
||||||
child: Row(
|
child: Row(
|
||||||
spacing: 20,
|
spacing: 12,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: SpaceIconPicker(iconPath: space.icon)),
|
Expanded(child: SpaceIconPicker(iconPath: space.icon)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 3,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
children: [
|
children: [
|
||||||
|
@ -17,14 +17,14 @@ class SpaceIconPicker extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Center(
|
return Align(
|
||||||
|
alignment: Alignment.center,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: context.screenWidth * 0.175,
|
width: context.screenWidth * 0.13,
|
||||||
height: context.screenHeight * 0.175,
|
height: context.screenHeight * 0.13,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: ColorsManager.boxColor,
|
color: ColorsManager.boxColor,
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
@ -38,7 +38,7 @@ class SpaceIconPicker extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Positioned.directional(
|
Positioned.directional(
|
||||||
top: 12,
|
top: 12,
|
||||||
start: context.screenHeight * 0.06,
|
start: context.screenHeight * 0.0375,
|
||||||
textDirection: Directionality.of(context),
|
textDirection: Directionality.of(context),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@ -58,14 +58,8 @@ class SpaceIconPicker extends StatelessWidget {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(shape: BoxShape.circle),
|
||||||
shape: BoxShape.circle,
|
child: SvgPicture.asset(Assets.iconEdit, width: 16, height: 16),
|
||||||
),
|
|
||||||
child: SvgPicture.asset(
|
|
||||||
Assets.iconEdit,
|
|
||||||
width: 16,
|
|
||||||
height: 16,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user