diff --git a/lib/app_page.dart b/lib/app_page.dart index 13f3093..d766d95 100644 --- a/lib/app_page.dart +++ b/lib/app_page.dart @@ -97,6 +97,41 @@ class _AppPageState extends State { ? 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: [ diff --git a/lib/main.dart b/lib/main.dart index ce12f8a..4832b2b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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(