feat(quick-actions): add localization
This commit is contained in:
@@ -1,31 +1,15 @@
|
|||||||
import 'package:filcnaplo_mobile_ui/screens/navigation/navigation_screen.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:quick_actions/quick_actions.dart';
|
import 'package:quick_actions/quick_actions.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/common/screens.i18n.dart';
|
||||||
|
|
||||||
const QuickActions quickActions = QuickActions();
|
const QuickActions quickActions = QuickActions();
|
||||||
|
|
||||||
void setupQuickActions() {
|
void setupQuickActions() {
|
||||||
quickActions.setShortcutItems(<ShortcutItem>[
|
quickActions.setShortcutItems(<ShortcutItem>[
|
||||||
const ShortcutItem(
|
ShortcutItem(type: 'action_grades', localizedTitle: 'grades'.i18n, icon: 'ic_grades'),
|
||||||
type: 'action_home',
|
ShortcutItem(type: 'action_timetable', localizedTitle: 'timetable'.i18n, icon: 'ic_timetable'),
|
||||||
localizedTitle: 'Home',
|
ShortcutItem(type: 'action_messages', localizedTitle: 'messages'.i18n, icon: 'ic_messages'),
|
||||||
icon: 'ic_home'),
|
ShortcutItem(type: 'action_absences', localizedTitle: 'absences'.i18n, icon: 'ic_absences')
|
||||||
const ShortcutItem(
|
|
||||||
type: 'action_grades',
|
|
||||||
localizedTitle: 'Grades',
|
|
||||||
icon: 'ic_grades'),
|
|
||||||
const ShortcutItem(
|
|
||||||
type: 'action_timetable',
|
|
||||||
localizedTitle: 'Timetable',
|
|
||||||
icon: 'ic_timetable'),
|
|
||||||
const ShortcutItem(
|
|
||||||
type: 'action_messages',
|
|
||||||
localizedTitle: 'Messages',
|
|
||||||
icon: 'ic_messages'),
|
|
||||||
const ShortcutItem(
|
|
||||||
type: 'action_absences',
|
|
||||||
localizedTitle: 'Absences',
|
|
||||||
icon: 'ic_absences')
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule filcnaplo_mobile_ui updated: 11ada9b575...07d7be0fcc
Reference in New Issue
Block a user