Skip to content

Commit 90cd385

Browse files
authored
[compass_app] Mark classes used for namespacing as abstract final (#2540)
As they are just used for namespacing static properties, these classes shouldn't be extended, implemented, or instantiated.
1 parent 754ddf0 commit 90cd385

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

compass_app/app/lib/config/assets.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
class Assets {
5+
abstract final class Assets {
66
static const activities = 'assets/activities.json';
77
static const destinations = 'assets/destinations.json';
88
}

compass_app/app/lib/routing/routes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
class Routes {
5+
abstract final class Routes {
66
static const home = '/';
77
static const login = '/login';
88
static const search = '/$searchRelative';

compass_app/app/lib/ui/core/themes/colors.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import 'package:flutter/material.dart';
66

7-
class AppColors {
7+
abstract final class AppColors {
88
static const black1 = Color(0xFF101010);
99
static const white1 = Color(0xFFFFF7FA);
1010
static const grey1 = Color(0xFFF2F2F2);

compass_app/app/lib/ui/core/themes/theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'colors.dart';
66
import '../ui/tag_chip.dart';
77
import 'package:flutter/material.dart';
88

9-
class AppTheme {
9+
abstract final class AppTheme {
1010
static const _textTheme = TextTheme(
1111
headlineLarge: TextStyle(
1212
fontSize: 32,

compass_app/server/lib/config/assets.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:io';
88
import '../model/activity/activity.dart';
99
import '../model/destination/destination.dart';
1010

11-
class Assets {
11+
abstract final class Assets {
1212
static const _activities = '../app/assets/activities.json';
1313
static const _destinations = '../app/assets/destinations.json';
1414

compass_app/server/lib/config/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import '../model/user/user.dart';
66

7-
class Constants {
7+
abstract final class Constants {
88
/// Email for the hardcoded login.
99
static const email = '[email protected]';
1010

0 commit comments

Comments
 (0)