Giter Club home page Giter Club logo

flutter-meals's Introduction

Meal-Monkey

A Meal-Monkey Project Created In Flutter Meal-Monkey supports both Ios and Android.

Getting started

Step 1 Create A Flutter Project

flutter create project name

** Step 2** Run a Flutter Project

flutter run

** Step 3** Go to project root and execute the following command in console to get the required dependencies:

flutter pub get

Meal-Monkey Features:

  • Splash
  • Login
  • Home
  • Navigation
  • Google Sign In
  • Facebook Login
  • Image Picker
  • Shared Preferences(Data Save On Local Storage)
  • Validation
  • Payment Getaway
  • Cloud Firestore

Libraries & Tools Used

Folder Structure

Here is the core folder structure which flutter provides.

flutter-app/
|- android
|- build
|- ios
|- lib
|- linux
|- macos
|- test
|- web
|- windows

Here is the folder structure we have been using in this project

lib/
|- screens/
       |-Bottam_Navigation/
            |-mainPage.dart
       |-Home/
            |-home_page.dart
            |-homefood.dart
            |-most_popular.dart
       |-Login/
            |-login.dart
            |-reset_password.dart
            |-signup.dart
       |-Menu/
            |-bevagers.dart
            |-desserts.dart
            |-food.dart
            |-menu.dart
            |-promotion.dart
       |-More/
            |-my_order/
                     |-checkout.dart
                     |-my_order.dart
            |-about_us.dart
            |-inbox.dart
            |-more_page.dart
            |-notification.dart
            |-paymanet_details.dart
       |-Offer/
            |-offer_page.dart
       |-Profile/
            |-profilepage.dart
       |-Shared_pref/
            |-shared_pref.dart
       |-Splash/
            |-meal_monkey.dart
            |-splashScreen.dart
|- utils/
       |-color.dart
       |-icon.dart
       |-responsive.dart
       |-strings.dart
|-main.dart

Main

This is the starting point of the application. All the application level configurations are defined in this file i.e, theme, routes, title, orientation etc.

// import 'dart:io';

import 'dart:io';

import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:meals/screens/Splash/splashScreen.dart';
import 'package:meals/screens/shared_pref/shared_pref.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (Platform.isIOS) {
    await Firebase.initializeApp(
        options: const FirebaseOptions(
            apiKey: "AIzaSyBhFUxeDB6O5ki3R3IoAPDPEcZWjCsGR78",
            appId: "1:358514215620:ios:fd45c3c61c94a0fa629791",
            messagingSenderId: "358514215620",
            projectId: "meals-f852f"));
  } else {
    await Firebase.initializeApp();
  }
  await SharedPref.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: SplashScreen(),
    );
  }
}

flutter-meals's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.