25-8-4-1
This commit is contained in:
@@ -36,7 +36,7 @@ class BehaviorPage extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
children: [
|
||||
const Text("Overall Behavior Score",
|
||||
Text("Overall Behavior Score".tr,
|
||||
style: TextStyle(
|
||||
fontSize: 20, fontWeight: FontWeight.bold)),
|
||||
const SizedBox(height: 10),
|
||||
@@ -49,7 +49,7 @@ class BehaviorPage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text("Last 10 Trips",
|
||||
Text("Last 10 Trips".tr,
|
||||
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
|
||||
const SizedBox(height: 10),
|
||||
ListView.builder(
|
||||
@@ -70,10 +70,12 @@ class BehaviorPage extends StatelessWidget {
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text("Behavior Score: ${trip['behavior_score']}"),
|
||||
Text("Max Speed: ${trip['max_speed']} km/h"),
|
||||
Text("Hard Brakes: ${trip['hard_brakes']}"),
|
||||
Text("Distance: ${trip['total_distance']} km"),
|
||||
Text(
|
||||
"${'Behavior Score'.tr}: ${trip['behavior_score']}"),
|
||||
Text("${'Max Speed'.tr}: ${trip['max_speed']} km/h"),
|
||||
Text("${'Hard Brake'.tr}s: ${trip['hard_brakes']}"),
|
||||
Text(
|
||||
"${'Distance'.tr}: ${trip['total_distance']} km"),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user