import 'package:flutter/material.dart'; import 'package:skywood/global/request/api_const.dart'; import 'package:skywood/utils/tools/sky_device_info.dart'; import 'package:skywood/utils/tools/widgets/sky_app_bar.dart'; import 'package:skywood/utils/tools/widgets/sky_common_widget.dart'; import 'package:url_launcher/url_launcher.dart'; class AboutUsPage extends StatelessWidget { const AboutUsPage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: SkyAppBar( title: 'About Us', ), body: SizedBox( width: double.infinity, child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ const SizedBox(height: 100), SkyText(text: ApiConst.appName, fontSize: 16, fontWeight: FontWeight.bold, color: Colors.black, ), const SizedBox(height: 5), SkyText(text: 'V ${SkyDeviceInfo.instance.appVersion}', fontSize: 12, color: Colors.grey, ), const SizedBox(height: 20), Container( height: 46, padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 4), child: Row( children: [ ], ), ) ], ), ), ); } Future openUrl(String url) async { final encodedUrl = Uri.encodeFull(url); try { final bool launched = await launchUrl( Uri.parse(encodedUrl), mode: LaunchMode.externalApplication, ); if (!launched) { print('无法打开链接: $encodedUrl'); } } catch (e) { print('打开链接异常: $e'); } } }