sentry + schedule microfix

This commit is contained in:
2024-12-23 01:26:31 +03:00
parent 0cda6f9a48
commit d30600edda
8 changed files with 98 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:reverse_nn/application/controllers/schedule_controller.dart';
@@ -12,7 +14,18 @@ class CurrentStatusComponent extends StatelessWidget {
return GetBuilder<ScheduleController>(
builder: (controller) {
if(controller.currentSchedule.value == null) { return Container(); }
if(controller.currentSchedule.value == null) {
return Container(
margin: const EdgeInsets.only(top: 10),
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 10),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.secondaryContainer,
borderRadius: BorderRadius.circular(10),
),
alignment: Alignment.center,
child: Text('Что-то пошло не так...', style: Theme.of(context).textTheme.bodyLarge),
);
}
return ScheduleItemComponent(item: controller.currentSchedule.value!);
}