Skip to content

Commit

Permalink
Adjust UI
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 24, 2022
1 parent eeb6eb1 commit e78bcae
Showing 1 changed file with 58 additions and 40 deletions.
98 changes: 58 additions & 40 deletions web/lib/components/component_detection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class DetectionComponent extends StatelessWidget {
final Function refresh;

DetectionComponent(
this.event, this.refresh, {
this.event,
this.refresh, {
Key? key,
}) : super(key: key);

Expand Down Expand Up @@ -42,51 +43,68 @@ class DetectionComponent extends StatelessWidget {
),
const SizedBox(height: 4.0),
Text(event.getTime()),
const SizedBox(height: 28.0),
Row(
],
),
),
const Spacer(),
Container(
padding: const EdgeInsets.all(8.0),
height: 100.0,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
const Icon(Icons.video_camera_back_outlined),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 4.0),
child: Text(
event.getCamera(),
textAlign: TextAlign.center,
),
)
],
const Icon(
Icons.video_camera_back_outlined,
size: 18.0,
),
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
const Icon(Icons.location_on_outlined),
Padding(
padding: const EdgeInsets.only(right: 4.0),
child: Text(
event.getZone(),
textAlign: TextAlign.center,
),
)
],
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 4.0),
child: Text(
event.getCamera(),
textAlign: TextAlign.center,
),
)
],
),
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
const Icon(
Icons.location_on_outlined,
size: 18.0,
),
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
const Icon(Icons.color_lens_outlined),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 4.0),
child: Text(
event.getColorVariant(),
textAlign: TextAlign.center,
),
)
],
Padding(
padding: const EdgeInsets.only(right: 4.0),
child: Text(
event.getZone(),
textAlign: TextAlign.center,
),
)
],
),
Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
const Icon(
Icons.color_lens_outlined,
size: 18.0,
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 4.0),
child: Text(
event.getColorVariant(),
textAlign: TextAlign.center,
),
)
],
)
],
),
),
Expand Down

0 comments on commit e78bcae

Please sign in to comment.