Skip to content

Commit

Permalink
Merge pull request #252 from nimblehq/feature/#246-define-app-color-r…
Browse files Browse the repository at this point in the history
…esources-via-a-new-app-colors-class-instead-of-generating-from-an-xml-by-flutter-gen
  • Loading branch information
luongvo authored Jul 31, 2023
2 parents 04a3af8 + 38fcad0 commit 296e116
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:go_router/go_router.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:{{project_name.snakeCase()}}/di/di.dart';
import 'package:{{project_name.snakeCase()}}/gen/assets.gen.dart';
import 'package:{{project_name.snakeCase()}}/gen/colors.gen.dart';
import 'package:{{project_name.snakeCase()}}/resources/app_colors.dart';
import 'package:{{project_name.snakeCase()}}/usecases/user/get_users_use_case.dart';

import 'home_view_model.dart';
Expand Down Expand Up @@ -117,7 +117,7 @@ class HomeScreenState extends ConsumerState<HomeScreen> {
Text(
FlutterConfig.get('SECRET'),
style: const TextStyle(
color: ColorName.nimblePrimaryBlue,
color: AppColors.nimblePrimaryBlue,
fontSize: 24,
),
),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import 'package:flutter/material.dart';

class AppColors {
static const Color nimblePrimaryBlue = Color(0xFF201547);
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,3 @@ flutter:
flutter_gen:
integrations:
flutter_svg: true

colors:
inputs:
- assets/colors/colors.xml

0 comments on commit 296e116

Please sign in to comment.