Theme configuration
This commit is contained in:
22
lib/utils/color_translation.dart
Normal file
22
lib/utils/color_translation.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:linkdy/i18n/strings.g.dart';
|
||||
|
||||
String colorTranslation(int index) {
|
||||
// This indexes has to be in sync with colors array at constants/colors.dart
|
||||
List<String> translations = [
|
||||
"Linkding",
|
||||
t.colors.red,
|
||||
t.colors.green,
|
||||
t.colors.blue,
|
||||
t.colors.yellow,
|
||||
t.colors.orange,
|
||||
t.colors.brown,
|
||||
t.colors.cyan,
|
||||
t.colors.purple,
|
||||
t.colors.pink,
|
||||
t.colors.deepOrange,
|
||||
t.colors.indigo,
|
||||
];
|
||||
return translations[index];
|
||||
}
|
||||
Reference in New Issue
Block a user