Skip to content

Commit

Permalink
chore: renamed app to Vehicle Cockpit (#2)
Browse files Browse the repository at this point in the history
* feat: layout redesign

* fix: added test

* fix: removed non required widgets

* chore: renamed app to Vehicle Cockpit
  • Loading branch information
jneschisi authored Jul 29, 2024
1 parent 551fb46 commit f04677f
Show file tree
Hide file tree
Showing 58 changed files with 139 additions and 136 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dash_and_furious
name: vehicle_cockpit

concurrency:
group: $-$
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Dash And Furious
# Vehicle Cockpit

![coverage][coverage_badge]
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]

Generated by the [Very Good CLI][very_good_cli_link] 🤖

Dash and Furious demo project.
Vehicle Cockpit demo project.

---

Expand All @@ -31,7 +31,7 @@ $ flutter run --flavor staging --target lib/main_staging.dart
$ flutter run --flavor production --target lib/main_production.dart
```

_\*Dash And Furious works on iOS, Android, Web, and Windows._
_\*Vehicle Cockpit works on iOS, Android, Web, and Windows._

---

Expand Down Expand Up @@ -92,7 +92,7 @@ This project relies on [flutter_localizations][flutter_localizations_link] and f
3. Use the new string

```dart
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
@override
Widget build(BuildContext context) {
Expand Down
11 changes: 5 additions & 6 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
namespace "com.vgv.experience.dash_and_furious"
namespace "com.vgv.experience.vehicle_cockpit"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand All @@ -47,8 +47,7 @@ android {
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.vgv.experience.dash_and_furious"
applicationId "com.vgv.experience.vehicle_cockpit"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
Expand Down Expand Up @@ -80,17 +79,17 @@ android {
production {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "Dash And Furious"]
manifestPlaceholders = [appName: "Vehicle Cockpit"]
}
staging {
dimension "default"
applicationIdSuffix ".stg"
manifestPlaceholders = [appName: "[STG] Dash And Furious"]
manifestPlaceholders = [appName: "[STG] Vehicle Cockpit"]
}
development {
dimension "default"
applicationIdSuffix ".dev"
manifestPlaceholders = [appName: "[DEV] Dash And Furious"]
manifestPlaceholders = [appName: "[DEV] Vehicle Cockpit"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vgv.experience.dash_and_furious">
package="com.vgv.experience.vehicle_cockpit">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vgv.experience.dash_and_furious">
package="com.vgv.experience.vehicle_cockpit">
<application
android:label="${appName}"
android:name="${applicationName}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.vgv.experience.dash_and_furious
package com.vgv.experience.vehicle_cockpit

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vgv.experience.dash_and_furious">
package="com.vgv.experience.vehicle_cockpit">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
18 changes: 9 additions & 9 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "Dash And Furious";
FLAVOR_APP_NAME = "Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -459,7 +459,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "Dash And Furious";
FLAVOR_APP_NAME = "Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -547,7 +547,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "Dash And Furious";
FLAVOR_APP_NAME = "Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -640,7 +640,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[DEV] Dash And Furious";
FLAVOR_APP_NAME = "[DEV] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -731,7 +731,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[DEV] Dash And Furious";
FLAVOR_APP_NAME = "[DEV] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -821,7 +821,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[DEV] Dash And Furious";
FLAVOR_APP_NAME = "[DEV] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -914,7 +914,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[STG] Dash And Furious";
FLAVOR_APP_NAME = "[STG] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1007,7 +1007,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[STG] Dash And Furious";
FLAVOR_APP_NAME = "[STG] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1095,7 +1095,7 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
FLAVOR_APP_NAME = "[STG] Dash And Furious";
FLAVOR_APP_NAME = "[STG] Vehicle Cockpit";
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
4 changes: 2 additions & 2 deletions lib/app/view/app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/demo/demo.dart';
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/demo/demo.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';

class App extends StatelessWidget {
const App({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/game/gauge_game.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:flame/events.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';

class GaugeGame extends FlameGame with KeyboardEvents {
GaugeGame({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/gear.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:math';

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class Gear extends PositionComponent with HasGameRef<GaugeGame> {
Gear({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/rpm_gauge/gauge_component.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:math' as math;

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class GaugeComponent extends PositionComponent {
GaugeComponent({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/rpm_gauge/gauge_number_indicator.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class GaugeNumberIndicator extends TextComponent with HasGameRef<GaugeGame> {
GaugeNumberIndicator({
Expand Down
3 changes: 2 additions & 1 deletion lib/dashboard/game/rpm_gauge/gauge_progress.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'package:dash_and_furious/dashboard/dashboard.dart';

import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class GaugeProgress extends PositionComponent with ParentIsA<GaugeComponent> {
GaugeProgress({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/rpm_gauge/gauge_rpm_numbers.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';
import 'dart:math' as math;

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class GaugeRpmNumbers extends PositionComponent with ParentIsA<GaugeComponent> {
GaugeRpmNumbers({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/rpm_gauge/gauge_rpm_point.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:ui' as ui;

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class GaugeRpmPoint extends RectangleComponent with HasGameRef<GaugeGame> {
GaugeRpmPoint({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/game/speedometer.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';

class Speedometer extends TextComponent with HasGameRef<GaugeGame> {
Speedometer({
Expand Down
6 changes: 3 additions & 3 deletions lib/dashboard/view/dashboard_page.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'dart:math';

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class Dashboard extends StatefulWidget {
const Dashboard({
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/widgets/accelerator_button.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class AcceleratorButton extends StatefulWidget {
const AcceleratorButton({required this.game, super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/widgets/clock.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class Clock extends StatelessWidget {
const Clock({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/widgets/external_temp.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class ExternalTemp extends StatelessWidget {
const ExternalTemp({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/widgets/fuel_gauge.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class FuelGauge extends StatelessWidget {
const FuelGauge({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/widgets/lap.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class Lap extends StatelessWidget {
const Lap({
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/widgets/lap_section.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:math';

import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class LapSection extends StatefulWidget {
const LapSection({
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/widgets/route_map.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class RouteMap extends StatelessWidget {
const RouteMap({
Expand Down
4 changes: 2 additions & 2 deletions lib/dashboard/widgets/temperature_gauge.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:dash_and_furious/ui/ui.dart';
import 'package:flutter/material.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
import 'package:vehicle_cockpit/ui/ui.dart';

class TemperatureGauge extends StatelessWidget {
const TemperatureGauge({
Expand Down
6 changes: 3 additions & 3 deletions lib/demo/view/demo_page.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:dash_and_furious/dashboard/dashboard.dart';
import 'package:dash_and_furious/l10n/l10n.dart';
import 'package:dash_and_furious/theme_button/theme_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:vehicle_cockpit/dashboard/dashboard.dart';
import 'package:vehicle_cockpit/l10n/l10n.dart';
import 'package:vehicle_cockpit/theme_button/theme_button.dart';

class DemoPage extends StatelessWidget {
const DemoPage({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/main_development.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_and_furious/app/app.dart';
import 'package:dash_and_furious/bootstrap.dart';
import 'package:vehicle_cockpit/app/app.dart';
import 'package:vehicle_cockpit/bootstrap.dart';

void main() {
bootstrap(() => const App());
Expand Down
4 changes: 2 additions & 2 deletions lib/main_production.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_and_furious/app/app.dart';
import 'package:dash_and_furious/bootstrap.dart';
import 'package:vehicle_cockpit/app/app.dart';
import 'package:vehicle_cockpit/bootstrap.dart';

void main() {
bootstrap(() => const App());
Expand Down
4 changes: 2 additions & 2 deletions lib/main_staging.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dash_and_furious/app/app.dart';
import 'package:dash_and_furious/bootstrap.dart';
import 'package:vehicle_cockpit/app/app.dart';
import 'package:vehicle_cockpit/bootstrap.dart';

void main() {
bootstrap(() => const App());
Expand Down
Loading

0 comments on commit f04677f

Please sign in to comment.