mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 17:47:53 +00:00
Refactor border radius implementation in ScheduleGarageTableWidget for consistency
This commit is contained in:
@ -26,8 +26,7 @@ class ScheduleGarageTableWidget extends StatelessWidget {
|
|||||||
Table(
|
Table(
|
||||||
border: TableBorder.all(
|
border: TableBorder.all(
|
||||||
color: ColorsManager.graysColor,
|
color: ColorsManager.graysColor,
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
|
||||||
topLeft: Radius.circular(20), topRight: Radius.circular(20)),
|
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
TableRow(
|
TableRow(
|
||||||
@ -56,16 +55,15 @@ class ScheduleGarageTableWidget extends StatelessWidget {
|
|||||||
child: Center(child: CircularProgressIndicator()));
|
child: Center(child: CircularProgressIndicator()));
|
||||||
}
|
}
|
||||||
if (state is GarageDoorLoadedState &&
|
if (state is GarageDoorLoadedState &&
|
||||||
state.status.schedules?.isEmpty == true) {
|
state.status.schedules!.isEmpty) {
|
||||||
return _buildEmptyState(context);
|
return _buildEmptyState(context);
|
||||||
} else if (state is GarageDoorLoadedState) {
|
} else if (state is GarageDoorLoadedState) {
|
||||||
return Container(
|
return Container(
|
||||||
height: 200,
|
height: 200,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: ColorsManager.graysColor),
|
border: Border.all(color: ColorsManager.graysColor),
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(
|
||||||
bottomLeft: Radius.circular(20),
|
bottom: Radius.circular(20)),
|
||||||
bottomRight: Radius.circular(20)),
|
|
||||||
),
|
),
|
||||||
child: _buildTableBody(state, context));
|
child: _buildTableBody(state, context));
|
||||||
}
|
}
|
||||||
@ -83,8 +81,7 @@ class ScheduleGarageTableWidget extends StatelessWidget {
|
|||||||
height: 200,
|
height: 200,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(color: ColorsManager.graysColor),
|
border: Border.all(color: ColorsManager.graysColor),
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(20)),
|
||||||
bottomLeft: Radius.circular(20), bottomRight: Radius.circular(20)),
|
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
Reference in New Issue
Block a user