feat: lang
This commit is contained in:
@@ -3,7 +3,9 @@ import 'package:auto_route/auto_route.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
|
||||
import '../../../common/extension/extension.dart';
|
||||
import '../../../common/theme/theme.dart';
|
||||
import '../../components/assets/assets.gen.dart';
|
||||
|
||||
@RoutePage()
|
||||
class AboutAppPage extends StatefulWidget {
|
||||
@@ -107,7 +109,7 @@ class _AboutAppPageState extends State<AboutAppPage>
|
||||
return Opacity(
|
||||
opacity: _fadeAnimation.value,
|
||||
child: Text(
|
||||
'Tentang Aplikasi',
|
||||
context.lang.about_app,
|
||||
style: AppStyle.lg.copyWith(
|
||||
color: AppColor.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -142,7 +144,7 @@ class _AboutAppPageState extends State<AboutAppPage>
|
||||
height: 100,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColor.white,
|
||||
borderRadius: BorderRadius.circular(25),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColor.black.withOpacity(0.2),
|
||||
@@ -151,10 +153,9 @@ class _AboutAppPageState extends State<AboutAppPage>
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Icon(
|
||||
Icons.mobile_friendly,
|
||||
size: 50,
|
||||
color: AppColor.primary,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Assets.images.logo.image(),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
@@ -247,7 +248,7 @@ class _AboutAppPageState extends State<AboutAppPage>
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Text(
|
||||
'Informasi Aplikasi',
|
||||
context.lang.app_information,
|
||||
style: AppStyle.h6.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
color: AppColor.primary,
|
||||
@@ -256,18 +257,24 @@ class _AboutAppPageState extends State<AboutAppPage>
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
_buildInfoRow('Nama Aplikasi', packageInfo?.appName ?? 'Loading...'),
|
||||
_buildInfoRow('Versi', packageInfo?.version ?? 'Loading...'),
|
||||
_buildInfoRow(
|
||||
'Build Number',
|
||||
context.lang.app_name,
|
||||
packageInfo?.appName ?? 'Loading...',
|
||||
),
|
||||
_buildInfoRow(
|
||||
context.lang.version,
|
||||
packageInfo?.version ?? 'Loading...',
|
||||
),
|
||||
_buildInfoRow(
|
||||
context.lang.build_number,
|
||||
packageInfo?.buildNumber ?? 'Loading...',
|
||||
),
|
||||
_buildInfoRow(
|
||||
'Package Name',
|
||||
context.lang.package_name,
|
||||
packageInfo?.packageName ?? 'Loading...',
|
||||
),
|
||||
_buildInfoRow(
|
||||
'Device',
|
||||
context.lang.device,
|
||||
deviceInfo.isEmpty ? 'Loading...' : deviceInfo,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user