feat: add i18n

This commit is contained in:
Alberto Ponces
2022-08-07 00:37:12 +01:00
parent ab9b91b975
commit 89b642772c
15 changed files with 259 additions and 123 deletions

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:revanced_manager/ui/widgets/available_updates_card.dart';
import 'package:revanced_manager/ui/widgets/installed_apps_card.dart';
@ -33,26 +34,35 @@ class HomeView extends StatelessWidget {
),
),
const SizedBox(height: 60),
Text(
"Dashboard",
style: GoogleFonts.inter(
fontSize: 28,
I18nText(
'homeView.widgetTitle',
child: Text(
'',
style: GoogleFonts.inter(
fontSize: 28,
),
),
),
const SizedBox(height: 23),
Text(
"ReVanced Updates",
style: GoogleFonts.inter(
fontSize: 18,
I18nText(
'homeView.updatesSubtitle',
child: Text(
'',
style: GoogleFonts.inter(
fontSize: 18,
),
),
),
const SizedBox(height: 10),
const LatestCommitCard(),
const SizedBox(height: 14),
Text(
"Patched Applications",
style: GoogleFonts.inter(
fontSize: 18,
I18nText(
'homeView.patchedSubtitle',
child: Text(
'',
style: GoogleFonts.inter(
fontSize: 18,
),
),
),
const SizedBox(height: 14),