mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
format
This commit is contained in:
@ -12,21 +12,24 @@ class BlankCommunityWidget extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Expanded(
|
||||
child: Container(
|
||||
color: ColorsManager.whiteColors, // Parent container with white background
|
||||
color:
|
||||
ColorsManager.whiteColors, // Parent container with white background
|
||||
child: GridView.builder(
|
||||
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
|
||||
mainAxisSpacing: 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
|
||||
itemBuilder: (context, index) {
|
||||
return GestureDetector(
|
||||
onTap: () => _showCreateCommunityDialog(context),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center, // Center align the content
|
||||
crossAxisAlignment:
|
||||
CrossAxisAlignment.center, // Center align the content
|
||||
children: [
|
||||
Expanded(
|
||||
child: AspectRatio(
|
||||
@ -34,7 +37,7 @@ class BlankCommunityWidget extends StatelessWidget {
|
||||
child: Container(
|
||||
decoration: ShapeDecoration(
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(
|
||||
side: const BorderSide(
|
||||
width: 4,
|
||||
strokeAlign: BorderSide.strokeAlignOutside,
|
||||
color: ColorsManager.borderColor,
|
||||
|
Reference in New Issue
Block a user