lime-flutter

byVishal Salate

import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: NewsApp(), ); } } class NewsApp extends StatefulWidget { @override _NewsAppState createState() => _NewsAppState(); } class _NewsAppState extends State<NewsApp> { late final WebViewController controller; @override void initState() { super.initState(); controller = WebViewController() ..setJavaScriptMode(JavaScriptMode.unrestricted) ..loadRequest(Uri.parse( "https://your-news-app.netlify.app" // 🔥 PUT YOUR LIVE SITE HERE )); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("Live News App"), centerTitle: true, ), body: WebViewWidget(controller: controller), ); } }

Home
Home

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 6

System Requirements Document (SRD)

Project Name: lime-flutter

1. Introduction

The lime-flutter project is a Flutter-based mobile application designed to provide users with seamless access to live news updates via a web interface. This document outlines the system requirements for the project, ensuring clarity and alignment with the development goals.

The application leverages Flutter's webview_flutter package to embed a web-based news platform directly into the app, offering a smooth and interactive user experience. This SRD is tailored for Vishal Salate, based in India, and assumes locale-specific defaults such as IST timezone, INR currency, and user preferences for modern, responsive design.

Page 2 of 6

2. System Overview

The lime-flutter application is a lightweight, user-friendly mobile app that integrates a live news website using WebView. The app is designed to:

  • Provide real-time access to news updates.
  • Ensure a seamless and responsive browsing experience.
  • Handle errors gracefully and improve user experience with loading indicators.

The system architecture includes:

  • Frontend: Flutter framework for mobile app development.
  • Backend: No backend integration is required as the app directly loads a web-based news platform.
  • Error Handling: Displays user-friendly messages for web resource errors.
  • Progress Indicator: Enhances user experience during page load.

3. Functional Requirements

As User:

  • I should be able to view live news updates via the embedded WebView.
  • I should see a loading spinner while the page is loading.
  • I should receive a notification (e.g., SnackBar) if the page fails to load due to an error.

4. User Personas

Page 3 of 6

1. User:

  • Description: The primary user of the app who wants to access live news updates.
  • Goals:
    • Access real-time news seamlessly.
    • Experience a smooth and responsive interface.
    • Be informed of any issues during page load.
  • Pain Points:
    • Delays in page loading.
    • Lack of error notifications.

5. Visuals Colors and Theme

Unique Color Palette:

The lime-flutter project adopts a modern and vibrant color scheme to reflect the dynamism of live news updates.

ElementHex CodeDescription
Background#F5F9FFA soft, light blue for a clean look.
Surface#FFFFFFPure white for content areas.
Text#1A1A1ADark gray for readability.
Accent#00A676Vibrant green for interactive elements.
Muted Tones#B0BEC5Subtle gray for secondary elements.

6. Signature Design Concept

Page 4 of 6

Interactive News Globe

The lime-flutter homepage will feature a bold, unforgettable design: an Interactive News Globe.

  • Visuals:

    • A 3D globe rotates slowly in the center of the screen, with glowing pins marking major news locations around the world.
    • Each pin represents a category (e.g., Politics, Sports, Technology).
  • Interactions:

    • Users can swipe or tap on a pin to zoom into that region, revealing headlines and summaries.
    • Smooth transitions and animations create a dynamic experience.
  • Micro-Interactions:

    • Hovering over a pin causes it to pulse gently.
    • Clicking a pin triggers a ripple effect across the globe.
  • Color Shifts:

    • The globe’s background subtly changes based on the time of day (e.g., warm tones for morning, cool tones for night).

This design ensures the app leaves a lasting impression and engages users with an immersive experience.

Page 5 of 6

7. Non-Functional Requirements

  • Performance:
    • The app must load the embedded website within 3 seconds on a standard 4G connection.
  • Scalability:
    • The app should support future enhancements, such as additional features or integrations.
  • Reliability:
    • The app must handle web resource errors gracefully and notify users.
  • Usability:
    • The app should be intuitive and easy to navigate for all users.

8. Tech Stack

Frontend:

  • Flutter framework for mobile app development.

Backend:

  • No backend integration required.

AI Tools (Optional for future enhancements):

  • GPT 5.4 for user-friendly responses.
  • Google Nano Banana for image generation.

Local Orchestration:

  • Docker and docker-compose for containerization.
Page 6 of 6

9. Assumptions and Constraints

Assumptions:

  • Users have access to a stable internet connection.
  • The embedded website is optimized for mobile viewing.
  • The app will primarily be used in India, with locale-specific defaults.

Constraints:

  • The app relies on the availability and performance of the embedded website.
  • Limited offline functionality as the app is web-dependent.

10. Glossary

  • WebView: A component that allows mobile apps to display web content.
  • SnackBar: A lightweight notification that appears at the bottom of the screen.
  • Flutter: An open-source UI toolkit for building natively compiled applications.
  • Docker: A platform for developing, shipping, and running applications in containers.

This document provides a comprehensive overview of the lime-flutter project requirements. Vishal, let me know if there are additional features or refinements you'd like to include!

Home design preview
Splash: Launch App
Home: View News Globe
Home: Tap News Pin
WebView: Browse Headlines
WebView: Read Article
Error Screen: View Error