Hide nonfunctional widgets

This commit is contained in:
Abdullah Alassaf
2024-12-15 02:22:11 +03:00
parent fc3f215dba
commit f81880a704
12 changed files with 735 additions and 920 deletions

View File

@ -80,30 +80,30 @@ class HomeSettingsView extends StatelessWidget {
),
),
//Divider
Container(
height: 1,
margin: const EdgeInsets.only(top: 10),
color: ColorsManager.greyColor,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const BodyMedium(text: 'Location'),
Flexible(
child: TextField(
textAlign: TextAlign.end,
decoration: InputDecoration(
hintText: 'Set',
hintStyle: context.bodyMedium.copyWith(color: Colors.grey),
border: InputBorder.none,
),
),
),
],
),
// Container(
// height: 1,
// margin: const EdgeInsets.only(top: 10),
// color: ColorsManager.greyColor,
// ),
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// const BodyMedium(text: 'Location'),
// Flexible(
// child: TextField(
// textAlign: TextAlign.end,
// decoration: InputDecoration(
// hintText: 'Set',
// hintStyle: context.bodyMedium.copyWith(color: Colors.grey),
// border: InputBorder.none,
// ),
// ),
// ),
// ],
// ),
//Divider
Container(
margin: const EdgeInsets.only(bottom: 10),
margin: const EdgeInsets.symmetric(vertical: 10),
height: 1,
color: ColorsManager.greyColor,
),
@ -135,77 +135,77 @@ class HomeSettingsView extends StatelessWidget {
height: 10,
),
//TODO connect the members to this GridView
const BodySmall(
text: "Members",
fontWeight: FontWeight.bold,
),
GridView.builder(
shrinkWrap: true,
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
crossAxisSpacing: 10,
),
itemCount: 2,
itemBuilder: (context, index) => Stack(
alignment: Alignment.topCenter,
children: [
DefaultContainer(
margin: const EdgeInsets.only(top: 20),
padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 40),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(
height: 50,
),
BodyMedium(
text: 'Member ${index + 1}',
fontWeight: FontWeight.bold,
),
const SizedBox(height: 3),
const BodySmall(
text: 'Syncrow Account',
textAlign: TextAlign.center,
),
],
),
),
const SizedBox.square(
dimension: 80,
child: CircleAvatar(
backgroundColor: Colors.white,
child: SizedBox.square(
dimension: 77,
child: CircleAvatar(
backgroundColor: ColorsManager.greyColor,
child: Icon(Icons.person),
),
),
),
)
],
),
),
const Spacer(),
InkWell(
onTap: () {},
child: Row(
children: [
Expanded(
child: DefaultContainer(
child: Center(
child: BodyLarge(
text: 'Leave Home',
style: context.bodyLarge.copyWith(
color: Colors.red,
),
),
),
),
),
],
),
)
// const BodySmall(
// text: "Members",
// fontWeight: FontWeight.bold,
// ),
// GridView.builder(
// shrinkWrap: true,
// gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
// crossAxisCount: 2,
// crossAxisSpacing: 10,
// ),
// itemCount: 2,
// itemBuilder: (context, index) => Stack(
// alignment: Alignment.topCenter,
// children: [
// DefaultContainer(
// margin: const EdgeInsets.only(top: 20),
// padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 40),
// child: Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// const SizedBox(
// height: 50,
// ),
// BodyMedium(
// text: 'Member ${index + 1}',
// fontWeight: FontWeight.bold,
// ),
// const SizedBox(height: 3),
// const BodySmall(
// text: 'Syncrow Account',
// textAlign: TextAlign.center,
// ),
// ],
// ),
// ),
// const SizedBox.square(
// dimension: 80,
// child: CircleAvatar(
// backgroundColor: Colors.white,
// child: SizedBox.square(
// dimension: 77,
// child: CircleAvatar(
// backgroundColor: ColorsManager.greyColor,
// child: Icon(Icons.person),
// ),
// ),
// ),
// )
// ],
// ),
// ),
// const Spacer(),
// InkWell(
// onTap: () {},
// child: Row(
// children: [
// Expanded(
// child: DefaultContainer(
// child: Center(
// child: BodyLarge(
// text: 'Leave Home',
// style: context.bodyLarge.copyWith(
// color: Colors.red,
// ),
// ),
// ),
// ),
// ),
// ],
// ),
// )
],
),
);