refactor(skeletons): update children type annotations and improve consistency in skeleton widgets
This commit is contained in:
@@ -16,10 +16,10 @@ class InvoiceCardSkeleton extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: <Widget>[
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: <Widget>[
|
||||||
UiShimmerBox(
|
UiShimmerBox(
|
||||||
width: 72,
|
width: 72,
|
||||||
height: 24,
|
height: 24,
|
||||||
@@ -35,10 +35,10 @@ class InvoiceCardSkeleton extends StatelessWidget {
|
|||||||
const SizedBox(height: UiConstants.space4),
|
const SizedBox(height: UiConstants.space4),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: <Widget>[
|
||||||
const Column(
|
const Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: <Widget>[
|
||||||
UiShimmerLine(width: 80, height: 10),
|
UiShimmerLine(width: 80, height: 10),
|
||||||
SizedBox(height: UiConstants.space1),
|
SizedBox(height: UiConstants.space1),
|
||||||
UiShimmerLine(width: 100, height: 18),
|
UiShimmerLine(width: 100, height: 18),
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class InvoicesListSkeleton extends StatelessWidget {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(UiConstants.space5),
|
padding: const EdgeInsets.all(UiConstants.space5),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: List.generate(4, (int index) {
|
children: List<Widget>.generate(4, (int index) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: UiConstants.space4),
|
padding: const EdgeInsets.only(bottom: UiConstants.space4),
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|||||||
@@ -13,32 +13,32 @@ class CoveragePageSkeleton extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return UiShimmer(
|
return const UiShimmer(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(UiConstants.space5),
|
padding: EdgeInsets.all(UiConstants.space5),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: <Widget>[
|
||||||
// Quick stats row (2 stat cards)
|
// Quick stats row (2 stat cards)
|
||||||
const Row(
|
Row(
|
||||||
children: [
|
children: <Widget>[
|
||||||
Expanded(child: UiShimmerStatsCard()),
|
Expanded(child: UiShimmerStatsCard()),
|
||||||
SizedBox(width: UiConstants.space2),
|
SizedBox(width: UiConstants.space2),
|
||||||
Expanded(child: UiShimmerStatsCard()),
|
Expanded(child: UiShimmerStatsCard()),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space6),
|
SizedBox(height: UiConstants.space6),
|
||||||
|
|
||||||
// Shifts section header
|
// Shifts section header
|
||||||
const UiShimmerLine(width: 140, height: 18),
|
UiShimmerLine(width: 140, height: 18),
|
||||||
const SizedBox(height: UiConstants.space6),
|
SizedBox(height: UiConstants.space6),
|
||||||
|
|
||||||
// Shift cards with worker rows
|
// Shift cards with worker rows
|
||||||
const ShiftCardSkeleton(),
|
ShiftCardSkeleton(),
|
||||||
const SizedBox(height: UiConstants.space3),
|
SizedBox(height: UiConstants.space3),
|
||||||
const ShiftCardSkeleton(),
|
ShiftCardSkeleton(),
|
||||||
const SizedBox(height: UiConstants.space3),
|
SizedBox(height: UiConstants.space3),
|
||||||
const ShiftCardSkeleton(),
|
ShiftCardSkeleton(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user