Untitled

mail@pastecode.io avatar
unknown
dart
a year ago
2.5 kB
1
Indexable
Never
import 'dart:math' as math;
import 'package:centro/app/utilities/constants/app_colors.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ProjectFoldersTab extends StatelessWidget {
  final String folderTitle;
  final String folderDescription;
  const ProjectFoldersTab(
      {super.key, required this.folderTitle, required this.folderDescription});

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
        child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        SizedBox(height: Get.height * 0.035),
        Text(
          'folders'.tr,
          style: Get.textTheme.headline4,
        ),
        ListView.builder(
            shrinkWrap: true,
            physics: const BouncingScrollPhysics(),
            itemCount: 10,
            scrollDirection: Axis.horizontal,
            itemBuilder: (context, index) => Container(
                  width: Get.width * 0.4,
                  margin: const EdgeInsets.all(5),
                  padding: const EdgeInsets.all(5),
                  child: Card(
                      color:
                          Color((math.Random().nextDouble() * 0xFFFFFF).toInt())
                              .withOpacity(0.2),
                      child: Column(
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: [
                          Padding(
                            padding: const EdgeInsets.symmetric(horizontal: 10),
                            child: Image.asset(
                              'assets/images/socialMediaDetails.png',
                              scale: 1,
                              height: Get.height * 0.1,
                            ),
                          ),
                          Text(
                            folderTitle,
                            style: Get.textTheme.headline6
                                ?.copyWith(color: AppColors.white),
                          ),
                          Text(
                            folderDescription,
                            style: Get.textTheme.headline6
                                ?.copyWith(color: AppColors.grey),
                          )
                        ],
                      )),
                )),
        const Text('data'),
        const Text('data'),
        const Text('data'),
        const Text('data'),
      ],
    ));
  }
}