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
|
|
@ -2,8 +2,7 @@ import 'package:flutter/cupertino.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||
import 'package:markdown/markdown.dart' as md;
|
||||
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:InvenTree/l10.dart';
|
||||
|
||||
|
||||
class ReleaseNotesWidget extends StatelessWidget {
|
||||
|
|
@ -16,7 +15,7 @@ class ReleaseNotesWidget extends StatelessWidget {
|
|||
Widget build (BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(I18N.of(context).releaseNotes)
|
||||
title: Text(L10().releaseNotes)
|
||||
),
|
||||
body: Markdown(
|
||||
selectable: false,
|
||||
|
|
@ -37,7 +36,7 @@ class CreditsWidget extends StatelessWidget {
|
|||
Widget build (BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(I18N.of(context).credits),
|
||||
title: Text(L10().credits),
|
||||
),
|
||||
body: Markdown(
|
||||
selectable: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue