tap filter

This commit is contained in:
mohammad
2024-08-22 16:52:41 +03:00
parent e4f8924e93
commit f5a7441b3c
16 changed files with 333 additions and 318 deletions

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:syncrow_web/utils/color_manager.dart';
import 'package:syncrow_web/utils/constants/assets.dart';
class DynamicTable extends StatefulWidget {
final List<String> headers;
@ -8,6 +10,7 @@ class DynamicTable extends StatefulWidget {
final BoxDecoration? cellDecoration;
final Size size;
final bool withCheckBox;
final bool isEmpty;
final void Function(bool?)? selectAll;
final void Function(int, bool?)? onRowCheckboxChanged;
@ -16,6 +19,7 @@ class DynamicTable extends StatefulWidget {
required this.headers,
required this.data,
required this.size,
required this.isEmpty,
required this.withCheckBox,
this.headerDecoration,
this.cellDecoration,
@ -63,7 +67,8 @@ class _DynamicTableState extends State<DynamicTable> {
decoration: widget.cellDecoration,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: ListView(
child:
ListView(
scrollDirection: Axis.horizontal,
children: [
SizedBox(
@ -83,6 +88,29 @@ class _DynamicTableState extends State<DynamicTable> {
],
),
),
widget.isEmpty?
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
SvgPicture.asset(
Assets.emptyTable
),
SizedBox(height: 15,),
Text('No Passwords',style: Theme.of(context).textTheme.bodySmall!.copyWith(color:ColorsManager.grayColor ),)
],
),
],
),
],
),
):
Expanded(
child: Container(
color: Colors.white,
@ -164,7 +192,7 @@ class _DynamicTableState extends State<DynamicTable> {
alignment: Alignment.centerLeft,
child: Text(
content,
style: const TextStyle(color: Colors.black, fontSize: 12),
style: const TextStyle(color: Colors.black, fontSize: 10,fontWeight: FontWeight.w400),
),
),
);