mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Refactor of translation lookup!
This commit is contained in:
parent
b86025013d
commit
2a3e83509f
26 changed files with 339 additions and 353 deletions
|
|
@ -12,7 +12,8 @@ import 'package:flutter/cupertino.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:one_context/one_context.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:InvenTree/l10.dart';
|
||||
|
||||
|
||||
void showSnackIcon(String text, {IconData icon, Function onAction, bool success, String actionText}) {
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ void showSnackIcon(String text, {IconData icon, Function onAction, bool success,
|
|||
|
||||
if (actionText == null) {
|
||||
// Default action text
|
||||
actionText = I18N.of(OneContext().context).details;
|
||||
actionText = L10().details;
|
||||
}
|
||||
|
||||
action = SnackBarAction(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue