diff --git a/lib/views/screens/about_app_screen.dart b/lib/views/screens/about_app_screen.dart index c13e82c8..d356154a 100644 --- a/lib/views/screens/about_app_screen.dart +++ b/lib/views/screens/about_app_screen.dart @@ -1,7 +1,9 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:resonate/controllers/about_app_screen_controller.dart'; +import 'package:resonate/utils/constants.dart'; import 'package:resonate/utils/ui_sizes.dart'; +import 'package:share_plus/share_plus.dart'; import '../../utils/app_images.dart'; @@ -10,6 +12,11 @@ class AboutAppScreen extends StatelessWidget { final aboutAppScreenController = Get.put(AboutAppScreenController()); + // Method to share the app's GitHub repository link + void _shareApp() { + Share.share("Check out our GitHub repository: $githubRepoUrl"); + } + @override Widget build(BuildContext context) { return Scaffold( @@ -107,8 +114,7 @@ class AboutAppScreen extends StatelessWidget { child: Container( decoration: BoxDecoration( image: const DecorationImage( - image: - AssetImage(AppImages.aossieLogoImage), + image: AssetImage(AppImages.aossieLogoImage), scale: 4, ), color: Colors.black, @@ -140,62 +146,50 @@ class AboutAppScreen extends StatelessWidget { SizedBox( height: UiSizes.height_10, ), - Row( - children: [ - Expanded( - child: Container( - height: UiSizes.height_110, - decoration: BoxDecoration( - color: Theme.of(context).colorScheme.secondary, - borderRadius: BorderRadius.circular(12), - ), - padding: EdgeInsets.symmetric( - horizontal: UiSizes.width_20, + Container( + height: UiSizes.height_110, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.secondary, + borderRadius: BorderRadius.circular(12), + ), + padding: EdgeInsets.symmetric( + horizontal: UiSizes.width_20, + ), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + const Align( + alignment: Alignment.centerLeft, + child: Text( + "Help to grow", + style: TextStyle(), ), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - const Align( - alignment: Alignment.centerLeft, - child: Text( - "Help to grow", - style: TextStyle(), - ), + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + GestureDetector( + onTap: _shareApp, // Call the share method here + child: const Column( + children: [ + Icon(Icons.share_rounded), + Text("Share"), + ], ), - Row( - mainAxisAlignment: MainAxisAlignment.spaceAround, + ), + GestureDetector( + onTap: () {}, + child: const Column( children: [ - GestureDetector( - onTap: () {}, - child: const Column( - children: [ - Icon(Icons.share_rounded), - Text("Share"), - ], - ), - ), - GestureDetector( - onTap: () {}, - child: const Column( - children: [ - Icon(Icons.star_rate_outlined), - Text("Rate"), - ], - ), - ) + Icon(Icons.star_rate_outlined), + Text("Rate"), ], - ) - ], - ), - ), - ), - SizedBox( - width: UiSizes.width_10, - ), - const Expanded( - child: SizedBox(), - ) - ], + ), + ) + ], + ) + ], + ), ), SizedBox( height: UiSizes.height_40,