Skip to content

Commit

Permalink
Merge pull request #402 from ARYPROGRAMMER/feat/share-app-feature
Browse files Browse the repository at this point in the history
feat: added share-app-feature and improved ui
  • Loading branch information
Aarush-Acharya authored Nov 25, 2024
2 parents 92a55f1 + 22696eb commit d49d9ee
Showing 1 changed file with 48 additions and 54 deletions.
102 changes: 48 additions & 54 deletions lib/views/screens/about_app_screen.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d49d9ee

Please sign in to comment.