Skip to main content

Community and Social Sharing App for Sustainable Living | Flutter Code

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

GITHUB

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

Popular posts from this blog

Install TensorFlow on Windows 11: Step-by-Step Guide for CPU & GPU

 --- Installing **TensorFlow on Windows 11** requires setting up system dependencies, configuring Python, and ensuring compatibility with CPU or GPU acceleration. This step-by-step guide provides everything needed to install **TensorFlow 2.10 or lower** on **Windows Native**, including software prerequisites, Microsoft Visual C++ Redistributable installation, Miniconda setup, GPU driver configuration, and verification steps.   ### **System Requirements:**   Before installing TensorFlow, ensure your system meets these requirements:   - **Operating System:** Windows 7 or higher (64-bit)   - **Python Version:** 3.9–3.12   - **pip Version:** 19.0 or higher for Linux and Windows, 20.3 or higher for macOS   - **Microsoft Visual C++ Redistributable:** Required for Windows Native   - **Long Paths Enabled:** Ensure long paths are enabled in Windows settings   For **GPU support**, install:   - **NVIDIA ...

Unreal Engine Product Showcase: Mesmerizing Video Sequence Render

  4k Image:

Cloudflare Is Down Worldwide: What Happened, What It Means & What You Can Do

🌍 Cloudflare Is Down Worldwide: What Happened & Why the Internet Broke Today On 18 November 2025 , the internet experienced one of the largest global outages in years as Cloudflare , the backbone of countless websites and online services, went down unexpectedly. The outage caused millions of websites to become slow, unreachable, or return 5xx internal server errors , leading to widespread disruption across businesses, apps, and essential online platforms. This blog post explains what happened, why the internet broke for many users, and what Cloudflare has officially said so far. What Exactly Happened? Around 4:30 PM IST , reports began flooding social media and outage trackers like Downdetector. Users across India, Europe, the US, and Southeast Asia noticed that: Websites were not loading Requests were timing out Services dependent on Cloudflare CDN or DNS stopped responding APIs hosted through Cloudflare were failing Even some security and protection layers were ...