Files
Remever/lib/screens/settings/states/about.dart

83 lines
2.7 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:remever/common/functions.dart';
import 'package:remever/common/resources.dart';
import 'package:remever/common/widgets/typography.dart';
import 'package:remever/common/widgets/wspace.dart';
import 'package:remever/components/extensions/context.dart';
import 'package:remever/gen/assets.gen.dart';
import 'package:remever/screens/settings/cubit/settings_cubit.dart';
import 'package:remever/widgets/primary_button.dart';
import 'package:share_plus/share_plus.dart';
class AboutSettingsState extends StatelessWidget {
const AboutSettingsState({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.bg,
appBar: AppBar(
toolbarHeight: 66.h,
backgroundColor: AppColors.white,
shadowColor: Colors.transparent,
centerTitle: true,
title: AppTypography('О приложении', type: SemiBold20px()),
leading: IconButton(
onPressed: () {
context.read<SettingsCubit>().toInitialState();
},
icon: Icon(CupertinoIcons.left_chevron),
color: Colors.black,
),
actions: <Widget>[
IconButton(
onPressed: () async {
await Share.share('Присоединяйся к нам в REMEVER');
},
icon: Assets.icons.settingsShare.image(height: 24.h, width: 24.w),
color: Colors.black,
),
],
),
body: Padding(
padding: const EdgeInsets.all(16).r,
child: Column(
children: [
Spacer(),
Assets.images.logo.image(width: 308.w, height: 100.h),
AppTypography(
'Версия приложения: 1.10.12\nот 23.05.2025',
type: Regular12px(),
maxLines: 2,
textAlign: TextAlign.center,
),
Spacer(),
AppTypography(
'Лицензионное соглашение',
type: Regular14px(),
color: AppColors.primary,
),
HSpace(10),
AppTypography(
'Политика конфиденциальности',
type: Regular14px(),
color: AppColors.primary,
),
HSpace(60),
PrimaryButton(
onTap: () {},
child: AppTypography(
'Обновить приложение',
type: Medium14px(),
color: AppColors.white,
),
),
],
),
),
);
}
}