mirror of
https://codeberg.org/mi6e4ka/openstore.git
synced 2025-06-29 04:30:01 +00:00
feat: add securety info block
This commit is contained in:
parent
857c656b51
commit
ae78eb5ebd
2 changed files with 60 additions and 1 deletions
|
@ -97,6 +97,41 @@ class _AppPageState extends State<AppPage> {
|
||||||
? ListView(
|
? ListView(
|
||||||
padding: const EdgeInsets.fromLTRB(15, 0, 15, 15),
|
padding: const EdgeInsets.fromLTRB(15, 0, 15, 15),
|
||||||
children: [
|
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(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -74,7 +74,31 @@ class HomePage extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
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(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue