mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
format
This commit is contained in:
@ -12,21 +12,24 @@ class BlankCommunityWidget extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: ColorsManager.whiteColors, // Parent container with white background
|
color:
|
||||||
|
ColorsManager.whiteColors, // Parent container with white background
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
padding: const EdgeInsets.only(left: 40.0, top: 20.0),
|
padding: const EdgeInsets.only(left: 40.0, top: 20.0),
|
||||||
gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent(
|
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
maxCrossAxisExtent: 400, // Each item's width will be 400 or less
|
maxCrossAxisExtent: 400, // Each item's width will be 400 or less
|
||||||
mainAxisSpacing: 10, // Spacing between items
|
mainAxisSpacing: 10, // Spacing between items
|
||||||
crossAxisSpacing: 10, // Spacing between items
|
crossAxisSpacing: 10, // Spacing between items
|
||||||
childAspectRatio: 2.0, // Aspect ratio for width:height (e.g., 300:150 = 2.0)
|
childAspectRatio:
|
||||||
|
2.0, // Aspect ratio for width:height (e.g., 300:150 = 2.0)
|
||||||
),
|
),
|
||||||
itemCount: 1, // Only one item
|
itemCount: 1, // Only one item
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () => _showCreateCommunityDialog(context),
|
onTap: () => _showCreateCommunityDialog(context),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center, // Center align the content
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.center, // Center align the content
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
@ -34,7 +37,7 @@ class BlankCommunityWidget extends StatelessWidget {
|
|||||||
child: Container(
|
child: Container(
|
||||||
decoration: ShapeDecoration(
|
decoration: ShapeDecoration(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
side: BorderSide(
|
side: const BorderSide(
|
||||||
width: 4,
|
width: 4,
|
||||||
strokeAlign: BorderSide.strokeAlignOutside,
|
strokeAlign: BorderSide.strokeAlignOutside,
|
||||||
color: ColorsManager.borderColor,
|
color: ColorsManager.borderColor,
|
||||||
|
Reference in New Issue
Block a user