Skip to content

Commit

Permalink
Update Dashboard.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
mortzaCFT authored Oct 20, 2024
1 parent f2c7e11 commit 124fe84
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/screens/dashboard/sections/Dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class InfoCardGridView extends StatelessWidget {
height: cardHeight,
child: Obx(() => InfoCards(
icon: OctIcons.cpu_24,
title: "CPU Usage",
title: "CPU Usage".tr,
color: Theme.of(context).colorScheme.primary,
numOfFiles: dataController.cpuFiles.value,
percentage: dataController.cpuUsage.value,
Expand All @@ -142,7 +142,7 @@ class InfoCardGridView extends StatelessWidget {
height: cardHeight,
child: Obx(() => InfoCards(
icon: OctIcons.cloud_24,
title: "Cloud Usage",
title: "Cloud Usage".tr,
color: Theme.of(context).colorScheme.secondary,
numOfFiles: dataController.cloudFiles.value,
percentage: dataController.cloudUsage.value,
Expand All @@ -154,7 +154,7 @@ class InfoCardGridView extends StatelessWidget {
height: cardHeight,
child: Obx(() => InfoCards(
icon: Icons.memory_rounded,
title: "Memory Usage",
title: "Memory Usage".tr,
color: Theme.of(context).colorScheme.tertiary,
numOfFiles: dataController.memoryFiles.value,
percentage: dataController.memoryUsage.value,
Expand All @@ -166,7 +166,7 @@ class InfoCardGridView extends StatelessWidget {
height: cardHeight,
child: Obx(() => InfoCards(
icon: Icons.traffic_outlined,
title: "Traffic Usage",
title: "Traffic Usage".tr,
color: Theme.of(context).colorScheme.surface,
numOfFiles: dataController.trafficFiles.value,
percentage: dataController.trafficUsage.value,
Expand Down Expand Up @@ -201,7 +201,7 @@ class AttacksPerApplicationTable extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"Attacks per Application",
"Attacks per Application".tr,
style: Theme.of(context).textTheme.bodyMedium,
),
SizedBox(
Expand All @@ -211,12 +211,12 @@ class AttacksPerApplicationTable extends StatelessWidget {
horizontalMargin: 0,
columns: [
DataColumn(label: Text("#")),
DataColumn(label: Text("Application")),
DataColumn(label: Text("Critical")),
DataColumn(label: Text("Warning")),
DataColumn(label: Text("Notice")),
DataColumn(label: Text("Errors")),
DataColumn(label: Text("Requests")),
DataColumn(label: Text("Application".tr)),
DataColumn(label: Text("Critical".tr)),
DataColumn(label: Text("Warning".tr)),
DataColumn(label: Text("Notice".tr)),
DataColumn(label: Text("Errors".tr)),
DataColumn(label: Text("Requests".tr)),
],
rows: activities.map((activity) {
return DataRow(cells: [
Expand Down

0 comments on commit 124fe84

Please sign in to comment.