Adapted clients screen

This commit is contained in:
Juan Gilsanz Polo 2023-05-01 21:34:00 +02:00
parent 5660aefdc5
commit 3c92457040
14 changed files with 1249 additions and 373 deletions

View file

@ -10,6 +10,7 @@ class CustomListTile extends StatelessWidget {
final EdgeInsets? padding;
final void Function()? onLongPress;
final bool? disabled;
final void Function(bool)? onHover;
const CustomListTile({
Key? key,
@ -21,7 +22,8 @@ class CustomListTile extends StatelessWidget {
this.trailing,
this.padding,
this.onLongPress,
this.disabled
this.disabled,
this.onHover
}) : super(key: key);
@override
@ -30,6 +32,7 @@ class CustomListTile extends StatelessWidget {
color: Colors.transparent,
child: InkWell(
onTap: onTap,
onHover: onHover,
onLongPress: onLongPress,
child: Padding(
padding: padding ?? const EdgeInsets.symmetric(horizontal: 16, vertical: 12),

View file

@ -16,6 +16,7 @@ class CustomTabContentList extends StatelessWidget {
final Widget? fab;
final bool? fabVisible;
final bool? noSliver;
final EdgeInsets? listPadding;
const CustomTabContentList({
Key? key,
@ -29,7 +30,8 @@ class CustomTabContentList extends StatelessWidget {
this.refreshIndicatorOffset,
this.fab,
this.fabVisible,
this.noSliver
this.noSliver,
this.listPadding
}) : super(key: key);
@override
@ -73,6 +75,7 @@ class CustomTabContentList extends StatelessWidget {
return Stack(
children: [
ListView.builder(
padding: listPadding,
itemCount: itemsCount,
itemBuilder: (context, index) => contentWidget(index),
),
@ -117,7 +120,7 @@ class CustomTabContentList extends StatelessWidget {
builder: (BuildContext context) {
return RefreshIndicator(
onRefresh: onRefresh,
edgeOffset: refreshIndicatorOffset ?? 95,
edgeOffset: refreshIndicatorOffset ?? 70,
child: CustomScrollView(
slivers: <Widget>[
SliverOverlapInjector(