feat: add securety info block

This commit is contained in:
Michael 2025-05-08 14:31:12 +03:00
parent 857c656b51
commit ae78eb5ebd
2 changed files with 60 additions and 1 deletions

View file

@ -97,6 +97,41 @@ class _AppPageState extends State<AppPage> {
? ListView(
padding: const EdgeInsets.fromLTRB(15, 0, 15, 15),
children: [
Card(
margin: const EdgeInsets.fromLTRB(0, 0, 0, 15),
surfaceTintColor: _appInfo?["aggregatorInfo"] == null
? const Color.fromARGB(255, 0, 255, 0)
: const Color.fromARGB(255, 255, 187, 0),
child: Padding(
padding: const EdgeInsets.all(16),
child: Row(
spacing: 16,
children: [
const Icon(
Icons.security,
size: 32,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"предоставлено ${_appInfo?["aggregatorInfo"]?["source"] ?? "RuStore"}",
style: TextStyle(fontSize: 16),
),
Text(
_appInfo?["aggregatorInfo"] == null
? (_appInfo?["companyLegalForm"] ==
"INDIVIDUAL"
? "разработчик частное лицо"
: "разработчик компания")
: "разработчик ${_appInfo?["aggregatorInfo"]?["companyName"]}",
style: const TextStyle(fontSize: 14),
)
],
)
],
),
)),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [

View file

@ -74,7 +74,31 @@ class HomePage extends StatelessWidget {
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(),
Padding(
padding: EdgeInsets.all(10),
child: InkWell(
borderRadius: BorderRadius.circular(12),
onTap: () => launchUrlString(
"https://codeberg.org/mi6e4ka/openstore/src/branch/main/SAFETY.md"),
child: const Card(
child: Padding(
padding: EdgeInsets.all(10),
child: Row(
spacing: 8,
children: [
Icon(
Icons.info_rounded,
size: 32,
),
Text(
"О безопасности приложений",
style: TextStyle(fontSize: 18),
)
],
),
),
)),
),
Row(
children: [
const SizedBox(