Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AmirBayat0/fl_chart_showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ FL Chart Showcase - Beautiful Flutter Charts

A stunning showcase of FL Chart capabilities with beautiful animations, interactive features, and modern UI design

Flutter FL Chart License

Flutter Version FL Chart Version Status

✨ What's This?

This is a beautiful, interactive showcase of the FL Chart package for Flutter. It demonstrates how to create stunning, animated charts that will make your users go "Wow! 🀩"

Perfect for:

  • 🎯 Portfolio projects to showcase your skills
  • πŸ“Š Learning FL Chart with real examples
  • πŸš€ Production apps that need beautiful data visualization

🎨 Features That Will Blow Your Mind

🌟 Stunning Visual Design

  • Gradient backgrounds with smooth color transitions
  • Glassmorphism effects and modern card designs
  • Beautiful typography using Google Fonts (Poppins)
  • Responsive layouts that work on all screen sizes

🎭 Smooth Animations

  • Staggered entrance animations for chart cards
  • Interactive hover effects with scale transformations
  • Chart data animations that bring data to life
  • Page transitions with custom slide animations

πŸ“Š Interactive Chart Types

πŸ“ˆ Line Charts

  • Sales Growth Trends with smooth curves
  • Temperature Variations over time
  • Stock Price Movements with real-time feel
  • Interactive tooltips and touch responses

πŸ“Š Bar Charts

  • Revenue Analysis by product category
  • App Downloads across platforms
  • Team Performance metrics
  • Animated bars with hover effects

πŸ₯§ Pie Charts

  • Market Share Analysis with interactive segments
  • Expense Breakdown by category
  • Traffic Sources visualization
  • Touch-responsive sections with badges

🎯 Radar Charts

  • Skills Assessment for team members
  • Product Comparison across features
  • Multi-dimensional data visualization
  • Custom axis labels and styling

πŸ” Scatter Charts

  • Sales vs Marketing correlation analysis
  • User Behavior patterns
  • Performance Metrics comparison
  • Interactive data point exploration

πŸ› οΈ Tech Stack

Technology Version Purpose
Flutter 3.32+ Cross-platform UI framework
FL Chart 1.0.0 Beautiful chart library
Google Fonts 5.0.0 Typography enhancement
Material 3 Latest Modern design system

πŸš€ Getting Started

Prerequisites

  • Flutter 3.32 or higher
  • Dart 3.0 or higher
  • A device or emulator to run the app

Installation

  1. Clone the repository

    git clone https://github.com/amirbayat0/fl_chart_showcase.git
    cd fl_chart_showcase
  2. Install dependencies

    flutter pub get
  3. Run the app

    flutter run

🎯 Quick Start for Web

flutter run -d chrome --web-port 8080

πŸ“± App Structure

lib/
β”œβ”€β”€ main.dart              # App entry point with theme configuration
β”œβ”€β”€ pages/                 # Chart showcase pages
β”‚   β”œβ”€β”€ home_page.dart     # Beautiful home with chart cards
β”‚   β”œβ”€β”€ line_chart_page.dart    # Line chart examples
β”‚   β”œβ”€β”€ bar_chart_page.dart     # Bar chart examples
β”‚   β”œβ”€β”€ pie_chart_page.dart     # Pie chart examples
β”‚   β”œβ”€β”€ radar_chart_page.dart   # Radar chart examples
β”‚   └── scatter_chart_page.dart # Scatter chart examples
└── widgets/               # Reusable UI components
    └── chart_card.dart    # Animated chart selection cards

🎨 Design Philosophy

Modern & Engaging

  • Material 3 design principles
  • Smooth animations that feel natural
  • Interactive elements that respond to user input
  • Beautiful gradients and shadows

User Experience First

  • Intuitive navigation between chart types
  • Touch-friendly interactions
  • Responsive design for all screen sizes
  • Accessibility considerations

Performance Optimized

  • Efficient animations using Flutter's animation system
  • Lazy loading of chart data
  • Smooth 60fps animations
  • Memory efficient chart rendering

πŸ”§ Customization

Adding New Charts

  1. Create a new page in lib/pages/
  2. Add it to the home page navigation
  3. Follow the existing pattern for consistency

Modifying Colors

  • Update the color schemes in main.dart
  • Modify chart-specific colors in each page
  • Use the theme system for consistency

Animation Tweaking

  • Adjust animation durations in initState()
  • Modify animation curves for different feels
  • Add new animation types as needed

πŸ“Š Chart Examples

Line Chart - Sales Growth

LineChart(
  LineChartData(
    lineBarsData: [
      LineChartBarData(
        spots: salesData,
        isCurved: true,
        gradient: LinearGradient(
          colors: [Colors.blue.shade400, Colors.blue.shade600],
        ),
        belowBarData: BarAreaData(
          show: true,
          gradient: LinearGradient(
            colors: [
              Colors.blue.shade400.withOpacity(0.3),
              Colors.blue.shade400.withOpacity(0.1),
            ],
          ),
        ),
      ),
    ],
  ),
)

Bar Chart - Revenue Analysis

BarChart(
  BarChartData(
    barGroups: revenueData.map((data) {
      return BarChartGroupData(
        x: data.index,
        barRods: [
          BarChartRodData(
            toY: data.value,
            color: data.color,
            borderRadius: BorderRadius.circular(10),
          ),
        ],
      );
    }).toList(),
  ),
)

🌟 Key FL Chart Features Demonstrated

Interactive Elements

  • Touch responses on all chart types
  • Tooltips with custom styling
  • Hover effects and animations
  • Selection states for data points

Customization Options

  • Color schemes and gradients
  • Typography and labels
  • Grid lines and borders
  • Axis configurations

Animation Capabilities

  • Data animations on load
  • Interactive animations on touch
  • Smooth transitions between states
  • Performance optimized rendering

πŸ“± Screenshots & Demo

Image Image Image Image Image Image Image Image Image Image Image Image Image Image Image

🀝 Contributing

We love contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-chart)
  3. Commit your changes (git commit -m 'Add amazing new chart type')
  4. Push to the branch (git push origin feature/amazing-chart)
  5. Open a Pull Request

Contribution Ideas

  • πŸ†• New chart types (Area charts, Candlestick charts)
  • 🎨 Additional themes (Dark mode, custom color schemes)
  • πŸ“± Mobile optimizations (Touch gestures, haptic feedback)
  • 🌍 Internationalization (Multi-language support)
  • πŸ§ͺ Unit tests and widget tests

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • FL Chart Team for the amazing chart library
  • Flutter Team for the incredible framework
  • Material Design Team for the beautiful design system
  • Google Fonts for the typography

πŸ“ž Support & Community


⭐ Star History

Star History Chart


Made with ❀️ by Amir

If this project helps you create beautiful charts, please give it a ⭐ star!

GitHub stars GitHub forks GitHub issues

About

Flutter FL_Chart Package Showcase - awesome examples

Topics

Resources

License

Stars

Watchers

Forks

Languages