Android Mobile Food Ordering App For Restaurant – Project Idea Source Code

This is part of the android student’s project idea. I have received many request on Android Mobile Food Ordering App for Restaurant from readers on how to create it in android.

This is not a complete project for anybody working on a related topics but rather it is for learning purpose. By going through the source code you can learn how to implement a feature(s) you might need in your project.

This project will give you an insight on how to create android food ordering application and you can use the source code as a foundation to achieve your project requirement.

The application comes with different features. You can easily customize it the way you want.

This project comes with source code, documentation, Database Schema, Use Case Diagram and Web admin panel in Php and Mysql.

BUY NOW

 

I also have custom android and iOS applications I have develop that will be of help to students planning their thesis, dissertation or course project in mobile related fields.

Below are some of the screen-shots associated with this project.

Login and Registration Section

shot1 shot2

Menu Category and Menu Items

menusection

Order History, Favorite and Hot Deals

sectiontwo

Cart, Checkout, Payment and Order Confirmation

payment1 payment2

Database EER Diagram

dbdesign

Sample Code Snippet from the project

codes

Server Side Web Admin Panel

panel

 

APK File for testing purposes.

Please note that the latest changes might not reflect in the apk file. Kindly ask me any question with respect to that.

 

Package Includes

1 Android Java Source code

2. Web Admin Panel (Php and MYSQL)

3. Database file (.sql file)

4. Documentation

 

Link to documentation and setup questions

 

Promotion Price : $10

 

If you do not have any experience with android or Slim 3 Php framework then this source code is not for you. But if you still need to and will like me to set it up for you then you can contain for the setup price.

How to programmatically play phone default ring tone with Android

In this android programming source code example, we are going to play phone default ring tone with Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to play phone default ring tone with Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DeviceFeatures.DeviceFeaturesActivity20">

    <Button
        android:id="@+id/playRingtone"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Play Ringtone"
        android:textColor="#ffffff"
        android:background="@color/colorAccent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <Button
        android:id="@+id/stopRingtone"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Stop Ringtone"
        android:textColor="#ffffff"
        android:background="@color/colorAccent"
        android:layout_marginTop="110dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

MainActivity.java

import androidx.appcompat.app.AppCompatActivity;

import android.media.MediaPlayer;
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;
import android.widget.Button;

import com.bluapp.androidview2.R;

public class DeviceFeaturesActivity19 extends AppCompatActivity {
    private Button playRingtone;
    private Button stopRingtone;
    private MediaPlayer mediaPlayer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_features19);
        playRingtone = (Button) findViewById(R.id.playRingtone);
        stopRingtone = (Button) findViewById(R.id.stopRingtone);
        try {
        mediaPlayer = MediaPlayer.create(DeviceFeaturesActivity19.this, Settings.System.DEFAULT_RINGTONE_URI);
        mediaPlayer.prepare();
        mediaPlayer.setVolume(1f, 1f);
        mediaPlayer.setLooping(false);
        }catch (Exception e){
            e.printStackTrace();
        }

        playRingtone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mediaPlayer.start();
            }
        });

        stopRingtone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(mediaPlayer.isPlaying()){
                    mediaPlayer.stop();
                }
            }
        });

    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to programmatically vibrate a phone in Android

In this android programming source code example, we are going to make phone vibrate in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to make phone vibrate in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DeviceFeatures.DeviceFeaturesActivity18">

    <Button
        android:id="@+id/vibrate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Vibrate Phone"
        android:textColor="#ffffff"
        android:background="@color/colorAccent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

</androidx.constraintlayout.widget.ConstraintLayout>

MainActivity.java

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.VibrationEffect;
import android.os.Vibrator;
import android.view.View;
import android.widget.Button;

import com.bluapp.androidview2.R;

public class DeviceFeaturesActivity18 extends AppCompatActivity {
    private Button vibrate;
    private Vibrator vibrator;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_features18);
        vibrate = (Button) findViewById(R.id.vibrate);
        vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
        vibrate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                    vibrator.vibrate(VibrationEffect.createOneShot(600, VibrationEffect.DEFAULT_AMPLITUDE));
                } else {
                    vibrator.vibrate(600);
                }
            }
        });
    }
}

AndroidManifest.xml

<uses-permission android:name="android.permission.VIBRATE" />

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to play audio files from assets in Android

In this android programming source code example, we are going to play audio files from assets in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to play audio files from assets in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".DeviceFeatures.DeviceFeaturesActivity20">

    <Button
        android:id="@+id/playSound"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Play Sound"
        android:textColor="#ffffff"
        android:background="@color/colorAccent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"/>

    <Button
        android:id="@+id/stopSound"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Stop Sound"
        android:textColor="#ffffff"
        android:background="@color/colorAccent"
        android:layout_marginTop="110dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

MainActivity.java

import androidx.appcompat.app.AppCompatActivity;

import android.content.res.AssetFileDescriptor;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.bluapp.androidview2.R;

public class DeviceFeaturesActivity20 extends AppCompatActivity {
    private Button playSound;
    private Button stopSound;
    private MediaPlayer mediaPlayer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_features20);
        playSound = (Button) findViewById(R.id.playSound);
        stopSound = (Button) findViewById(R.id.stopSound);
        mediaPlayer = new MediaPlayer();
        try {
            AssetFileDescriptor descriptor = getAssets().openFd("music.mp3");
            mediaPlayer.setDataSource(descriptor.getFileDescriptor(), descriptor.getStartOffset(), descriptor.getLength());
            descriptor.close();
            mediaPlayer.prepare();
            mediaPlayer.setVolume(1f, 1f);
            mediaPlayer.setLooping(false);
        }catch (Exception e){
            e.printStackTrace();
        }

        playSound.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                mediaPlayer.start();
            }
        });

        stopSound.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(mediaPlayer.isPlaying()){
                    mediaPlayer.stop();
                }
            }
        });
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to send foreground push notifications in Flutter

In our previous article, we explained how to handle firebase cloud notifications.

Now, we’ll understand how handle local notifications in our flutter apps. And thereby, managing foreground notifications.

Let’s get started.

Import the flutter_local_notifications package from pub (Do check here, on how to set it up)

Create a new Dart file. paste this code:

import 'package:flutter/material.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';

class ForegroundNotification extends StatefulWidget {
  @override
  _ForegroundNotificationState createState() => _ForegroundNotificationState();
}

class _ForegroundNotificationState extends State<ForegroundNotification> {
  GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
  FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
      new FlutterLocalNotificationsPlugin();

  @override
  void initState() {
    super.initState();
    initNotifications();
  }

  _onTap() async {
    var androidPlatformChannelSpecifics = AndroidNotificationDetails(
        '1', 'inducesmile', 'inducesmile flutter snippets',
        importance: Importance.Max, priority: Priority.High);
    var iOSPlatformChannelSpecifics = IOSNotificationDetails();
    var platformChannelSpecifics = NotificationDetails(
        androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
    await flutterLocalNotificationsPlugin.show(0, 'Inducesmile.com',
        'For Android & Flutter source code', platformChannelSpecifics,
        payload: 'item x');
  }

  initNotifications() async {
// initialise the plugin. app_icon needs to be a added as a drawable resource to the Android head project
    var initializationSettingsAndroid =
        new AndroidInitializationSettings('app_icon');
    var initializationSettingsIOS = new IOSInitializationSettings(
        onDidReceiveLocalNotification: (i, string1, string2, string3) {
      print("received notifications");
    });
    var initializationSettings = new InitializationSettings(
        initializationSettingsAndroid, initializationSettingsIOS);
    flutterLocalNotificationsPlugin.initialize(initializationSettings,
        onSelectNotification: (string) {
      print("selected notification");
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      key: _scaffoldKey,
      appBar: AppBar(title: Text('Foreground Local Notification Example')),
      body: Center(
        child: RaisedButton(
          child: Text("Fire Notification"),
          onPressed: _onTap,
          color: Colors.red,
        ),
      ),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new ForegroundNotification(),
    );
  }
}

If you have any questions or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to send Firebase Push Notifications to Flutter app

We can use Firebase cloud messaging feature to send push notifications fro our flutter apps.

First off, head over to the firebase_messaging package home, to see how to set it up and explore more.

In your pubspec.yaml file, import this:

firebase_messaging: any

Create a new Dart file, paste this code:

import 'package:flutter/material.dart';
import 'package:firebase_messaging/firebase_messaging.dart';

class FirebaseNotification extends StatefulWidget {
  @override
  _FirebaseNotificationState createState() => _FirebaseNotificationState();
}

class _FirebaseNotificationState extends State<FirebaseNotification> {
  final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
  GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();

  @override
  void initState() {
    super.initState();
    initNotifications();
  }

  initNotifications() {
    _firebaseMessaging.configure(onMessage: (data) {
      if (data != null) {
        _scaffoldKey.currentState
            .showSnackBar(SnackBar(content: Text("Notification received")));
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      key: _scaffoldKey,
      appBar: AppBar(title: Text('Firebase Notification Example')),
      body: Center(child: Text("Main Page")),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new FirebaseNotification(),
    );
  }
}

If you have any questions or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to use fingerprint or touch ID in Flutter

We’ll learn how to perform Local authentication with a flutter app.

Basically, we’ll be using the Touch ID or Fingerprint authentication method.

Lets get to it.

Import the local_auth package from pub

Create a new dart file an paste this code:

import 'package:local_auth/local_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class TouchID extends StatefulWidget {
  @override
  _TouchIDState createState() => _TouchIDState();
}

class _TouchIDState extends State<TouchID> {
  final LocalAuthentication localAuth = LocalAuthentication();
  bool _canCheckBiometric = false;
  String _authorizeText = 'Not Authorized!';

  List<BiometricType> availableBiometrics = List<BiometricType>();

  Future<void> _authorize() async {
    bool _isAuthorized = false;
    try {
      _isAuthorized = await localAuth.authenticateWithBiometrics(
        localizedReason: 'Please authenticate to Complete this process',
        useErrorDialogs: true,
        stickyAuth: true,
      );
    } on PlatformException catch (e) {
      print(e);
    }

    if (!mounted) return;

    setState(() {
      if (_isAuthorized) {
        _authorizeText = "Authorized Successfully!";
      } else {
        _authorizeText = "Not Authorized!";
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Touch ID Auth Example')),
      body: Center(
          child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: Text(_authorizeText),
          ),
          RaisedButton(
            child: Text('Authorize'),
            color: Colors.red,
            onPressed: _authorize,
          )
        ],
      )),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new TouchID(),
    );
  }
}

If you have any questions or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to play phone default ring tone with Flutter

Title is pretty straight forward.

First, import the ringtone from pub. Also, check out how to set it up.

Create a new dart file and paste this code:

import 'package:flutter/material.dart';
import 'package:ringtone/ringtone.dart';
import 'package:vibrate/vibrate.dart';

class RingtoneExample extends StatefulWidget {
  @override
  _RingtoneExampleState createState() => _RingtoneExampleState();
}

class _RingtoneExampleState extends State<RingtoneExample> {
  bool _isPlaying = false;

  _playRingtone() async {
    if (_isPlaying) {
      Ringtone.stop();

      setState((){
        _isPlaying = !_isPlaying;
      });

    } else {
      Ringtone.play();

      setState((){
        _isPlaying = !_isPlaying;
      });
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Ringtone Example')),
      body: Center(
          child: RaisedButton(
        child: Text(_isPlaying ? "Stop Ringtone" : "Play Ringtone"),
        color: Colors.red,
        onPressed: _playRingtone,
      )),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new RingtoneExample(),
    );
  }
}

If you have any questions or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to make phone vibrate with Flutter

Title is pretty straight forward.

First, import the vibrate package from pub. Also, check out how to set it up.

Create a new dart file and paste this code:

import 'package:flutter/material.dart';
import 'package:vibrate/vibrate.dart';

class VibrateExample extends StatefulWidget {
  @override
  _VibrateExampleState createState() => _VibrateExampleState();
}

class _VibrateExampleState extends State<VibrateExample> {
  bool _canVibrate = false;

  @override
  void initState() {
    super.initState();
    _checkVibration();
  }

  _checkVibration() async {
    _canVibrate = await Vibrate.canVibrate;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Vibrate Phone Example')),
      body: Center(
        child: _canVibrate
            ? RaisedButton(
                child: Text("Vibrate Phone"),
                color: Colors.red,
                onPressed: () => Vibrate.vibrate())
            : Text("Phone Cannot Vibrate"),
      ),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new VibrateExample(),
    );
  }
}

If you have any questions or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to use face ID in Flutter

We’ll learn how to perform Local authentication with a flutter app.

Basically, we’ll be using the Face ID authentication method

Lets get to it.

Import the local_auth package from pub

Create a new dart file an paste this code:

import 'package:local_auth/auth_strings.dart';
import 'package:local_auth/local_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class FaceID extends StatefulWidget {
  @override
  _FaceIDState createState() => _FaceIDState();
}

class _FaceIDState extends State<FaceID> {
  final LocalAuthentication localAuth = LocalAuthentication();
  bool _canCheckBiometric = false;
  String _authorizeText = 'Not Authorized!';

  List<BiometricType> availableBiometrics = List<BiometricType>();

  Future<void> _authorize() async {
    bool _isAuthorized = false;
    try {
      const iosStrings = const IOSAuthMessages(
          cancelButton: 'Cancel Auth',
          goToSettingsButton: 'Goto Settings',
          goToSettingsDescription: 'Please set up your Touch ID.',
          lockOut: 'Please re-enable your Touch ID');

      _isAuthorized = await localAuth.authenticateWithBiometrics(
          localizedReason: 'Please authenticate to Complete this process',
          useErrorDialogs: false,
          iOSAuthStrings: iosStrings);
    } on PlatformException catch (e) {
      print(e);
    }

    if (!mounted) return;

    setState(() {
      if (_isAuthorized) {
        _authorizeText = "Authorized Successfully!";
      } else {
        _authorizeText = "Not Authorized!";
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Face ID Auth Example')),
      body: Center(
          child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: Text(_authorizeText),
          ),
          RaisedButton(
            child: Text('Authorize'),
            color: Colors.red,
            onPressed: _authorize,
          )
        ],
      )),
    );
  }
}

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new FaceID(),
    );
  }
}

How to get access to your contacts in Flutter

Here, you’ll learn how t access your device contacts and get necessary in formation.

First, import the contacts_service package from pub.

Also import permission_handler to provide necessary permissions.

Create a new dart file and paste this code:

 import 'package:contacts_service/contacts_service.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 import 'package:permission_handler/permission_handler.dart';

 class AccessContacts extends StatefulWidget {
   @override
   _AccessContactsState createState() => _AccessContactsState();
 }

 class _AccessContactsState extends State<AccessContacts> {
   Iterable<Contact> _contacts;

   @override
   void initState() {
     super.initState();
   }

   getContacts() async {
     PermissionStatus permissionStatus = await _getPermission();
     if (permissionStatus == PermissionStatus.granted) {
       var contacts = await ContactsService.getContacts();
       setState(() {
         _contacts = contacts;
       });
     } else {
       throw PlatformException(
         code: 'PERMISSION_DENIED',
         message: 'Access to location data denied',
         details: null,
       );
     }
   }

   Future<PermissionStatus> _getPermission() async {
     PermissionStatus permission = await PermissionHandler()
         .checkPermissionStatus(PermissionGroup.contacts);
     if (permission != PermissionStatus.granted &&
         permission != PermissionStatus.disabled) {
       Map<PermissionGroup, PermissionStatus> permisionStatus =
           await PermissionHandler()
               .requestPermissions([PermissionGroup.contacts]);
       return permisionStatus[PermissionGroup.contacts] ??
           PermissionStatus.unknown;
     } else {
       return permission;
     }
   }

   @override
   Widget build(BuildContext context) {
     return Scaffold(
       appBar: AppBar(title: Text('Access Contacts example')),
       body: _contacts != null
           ? ListView.builder(
               itemCount: _contacts?.length ?? 0,
               itemBuilder: (context, index) {
                 Contact c = _contacts?.elementAt(index);
                 return ListTile(
                   leading: (c.avatar != null && c.avatar.length > 0)
                       ? CircleAvatar(
                           backgroundImage: MemoryImage(c.avatar),
                         )
                       : CircleAvatar(child: Text(c.initials())),
                   title: Text(c.displayName ?? ''),
                 );
               },
             )
           : CircularProgressIndicator(),
     );
   }
 }

In main.dart:

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Code Snippets',
      theme: new ThemeData(primarySwatch: Colors.red),
      home: new AccessContacts(),
    );
  }
}