mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Refactor empty state widget to use a container for better layout control
This commit is contained in:
@ -179,31 +179,36 @@ class _DynamicTableState extends State<DynamicTable> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildEmptyState() => Column(
|
Widget _buildEmptyState() => Container(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
height: widget.size.height,
|
||||||
children: [
|
color: ColorsManager.whiteColors,
|
||||||
Row(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Row(
|
||||||
Column(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
SvgPicture.asset(Assets.emptyTable),
|
children: [
|
||||||
const SizedBox(height: 15),
|
Column(
|
||||||
Text(
|
children: [
|
||||||
widget.tableName == 'AccessManagement'
|
SvgPicture.asset(Assets.emptyTable),
|
||||||
? 'No Password '
|
const SizedBox(height: 15),
|
||||||
: 'No Devices',
|
Text(
|
||||||
style: Theme.of(context)
|
widget.tableName == 'AccessManagement'
|
||||||
.textTheme
|
? 'No Password '
|
||||||
.bodySmall!
|
: 'No Devices',
|
||||||
.copyWith(color: ColorsManager.grayColor),
|
style: Theme.of(context)
|
||||||
)
|
.textTheme
|
||||||
],
|
.bodySmall!
|
||||||
),
|
.copyWith(color: ColorsManager.grayColor),
|
||||||
],
|
)
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(height: widget.size.height * 0.5),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
Widget _buildSelectAllCheckbox() {
|
Widget _buildSelectAllCheckbox() {
|
||||||
return Container(
|
return Container(
|
||||||
|
Reference in New Issue
Block a user