Community and Social Sharing App for Sustainable Living | Flutter Code
Community and Social Sharing App for Sustainable Living is a comprehensive Flutter application designed to foster a sense of community among individuals striving for eco-friendly lifestyles. Through this app, users can connect with like-minded individuals, share valuable tips, experiences, and success stories related to sustainable living practices, and inspire others to adopt similar habits. The app provides a platform where users can join various communities dedicated to sustainability, share their achievements, and even post their progress on social media platforms.
Youtube:
Github:
https://github.com/Sivatech24/Community-and-Social-Sharing-App-for-Sustainable-Living-Flutter-Code.git
Code:
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context){
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Community And Social Sharing App',
theme: ThemeData(
primarySwatch: Colors.green,
),
home: SustaniablelivingPage(),
);
}
}
class SustaniablelivingPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Community And Social Sharing App'),
),
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Join Communities',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
),
_ShareCard(
title: 'Tip Of The Day',
content: 'Use reusable bags when grocery shopping!',
),
_ShareCard(
title: 'Success Story',
content: 'Reduce my house hold waste by 50% by composting and recycling!',
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Share Achivement',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
),
_CommunityCard(
communityName: 'Eco Warriors',
membersCount: 1200,
),
_CommunityCard(
communityName: 'Green Living Enthusiasts',
membersCount: 800,
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Share Achivements',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
),
_Achivementcard(
achivement: 'Planted 100 Trees',
image: 'assets/tree.jpg', // add custom image
),
_Achivementcard(
achivement: 'Installed Solar Panels',
image: 'assets/solar_panel.jpg' // add custom images
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Share On Social Media',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
),
ElevatedButton(
onPressed: () {
// Add options Here
},
child: Text('Share'),
),
],
),
),
);
}
}
class _CommunityCard extends StatelessWidget {
final String communityName;
final int membersCount;
const _CommunityCard({
required this.communityName,
required this.membersCount,
});
@override
Widget build(BuildContext context) {
return Card(
child: ListTile(
title: Text(communityName),
subtitle: Text('$membersCount Members'),
trailing: Icon(Icons.arrow_forward),
onTap: () {
// Navigate to community page
},
),
);
}
}
class _ShareCard extends StatelessWidget {
final String title;
final String content;
const _ShareCard({
required this.title,
required this.content,
});
@override
Widget build(BuildContext context) {
return Card(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
title,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 8),
Text(content),
],
),
),
);
}
}
class _Achivementcard extends StatelessWidget {
final String achivement;
final String image;
const _Achivementcard({
required this.achivement,
required this.image,
});
@override
Widget build(BuildContext context) {
return Card(
child: ListTile(
leading: Image.asset(image),
title: Text(achivement),
),
);
}
}
Output:
Description:
Community and Social Sharing App for Sustainable Living is a comprehensive Flutter application designed to foster a sense of community among individuals striving for eco-friendly lifestyles. Through this app, users can connect with like-minded individuals, share valuable tips, experiences, and success stories related to sustainable living practices, and inspire others to adopt similar habits. The app provides a platform where users can join various communities dedicated to sustainability, share their achievements, and even post their progress on social media platforms. The app's main features include: Join Communities: Users can explore and join communities of individuals passionate about sustainable living. These communities serve as hubs for sharing knowledge, experiences, and resources related to eco-friendly practices. By joining these communities, users can engage in discussions, seek advice, and connect with others who share similar interests and goals. Share Tips and Success Stories: The app allows users to share valuable tips, tricks, and success stories related to sustainable living. Whether it's reducing household waste, conserving energy, or adopting green transportation methods, users can inspire and motivate others by sharing their own experiences and accomplishments. Share Achievements: Users can celebrate their sustainability milestones by sharing their achievements within the app. Whether it's planting trees, installing solar panels, or adopting zero-waste practices, users can showcase their progress and inspire others to follow suit. Customizable Sharing: The app offers customizable sharing options, allowing users to post their achievements and progress on social media platforms directly from the app. By sharing their successes with a wider audience, users can amplify their impact and encourage others to embrace sustainable living practices. Engaging User Interface: With a user-friendly interface and intuitive navigation, the app provides a seamless experience for users to explore communities, share content, and interact with other members. The interface is designed to prioritize user engagement and encourage active participation within the community. Visual Representation of Achievements: Users can visually represent their achievements through custom images associated with their accomplishments. Whether it's a photo of newly planted trees or installed solar panels, users can add visual context to their achievements, making them more impactful and inspiring. Overall, the Community and Social Sharing App for Sustainable Living serves as a valuable platform for individuals looking to connect, collaborate, and contribute to a more sustainable future. By harnessing the power of community and social sharing, the app empowers users to make meaningful changes in their lives and inspire others to join the movement towards a greener, more eco-conscious world. Tags: #SustainableLiving, #CommunitySharing, #EcoFriendly, #SocialImpact, #GreenLiving, #FlutterApp, #EnvironmentalAwareness, #Sustainability, #CommunityEngagement, #SocialSharing, #ZeroWaste, #RenewableEnergy, #ClimateAction, #Conservation, #GreenTech, #SustainableCommunities, #HealthyPlanet, #GoGreen, #CarbonFootprint, #Empowerment, #NatureConservation, #EthicalLiving, #Biodiversity, #CircularEconomy, #GreenTech, #SustainableDevelopment, #ClimateJustice, #ConservationEfforts, #CleanEnergy, #EnvironmentalEducation, #GreenInnovation, #ResponsibleConsumption, #ClimateResilience, #EcologicalFootprint, #SustainableHabits, #GreenSpaces, #SustainableTransport, #OceanConservation, #CleanWater, #SustainableFashion, #RenewableResources, #EnvironmentalPolicy, #GreenBuilding, #ClimateActionNow, #ConservationAwareness, #SustainableAgriculture, #EcoEntrepreneurship, #YouthEmpowerment, #GlobalWarming, #EnvironmentalJustice,#SustainableLiving, #CommunitySharing, #EcoFriendly, #SocialImpact, #GreenLiving, #FlutterApp, #EnvironmentalAwareness, #Sustainability, #CommunityEngagement, #SocialSharing, #ZeroWaste, #RenewableEnergy, #ClimateAction, #Conservation, #GreenTech, #SustainableCommunities, #HealthyPlanet, #GoGreen, #CarbonFootprint, #Empowerment, #NatureConservation, #EthicalLiving, #Biodiversity, #CircularEconomy, #GreenTech, #SustainableDevelopment, #ClimateJustice, #ConservationEfforts, #CleanEnergy, #EnvironmentalEducation, #GreenInnovation, #ResponsibleConsumption, #ClimateResilience, #EcologicalFootprint, #SustainableHabits, #GreenSpaces, #SustainableTransport, #OceanConservation, #CleanWater, #SustainableFashion, #RenewableResources, #EnvironmentalPolicy, #GreenBuilding, #ClimateActionNow, #ConservationAwareness, #SustainableAgriculture, #EcoEntrepreneurship, #YouthEmpowerment, #GlobalWarming, #EnvironmentalJustice, #SharingIsCaring, #InspireChange, #DigitalCommunity, #TechForGood, #LifestyleChoices, #PositiveImpact, #GreenTips, #AchievementSharing, #SocialMediaSharing, #CommunityInteraction, #ProgressTracking, #MobileAppDevelopment
Comments
Post a Comment