This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.4.2' | |
classpath 'com.google.gms:google-services:4.3.0' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ADD THIS AT THE BOTTOM | |
// Otherwise, Default FirebaseApp is not initialized in this process | |
apply plugin: 'com.google.gms.google-services' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
void initState() { | |
super.initState(); | |
Auth.init( | |
scopes: <String>[ | |
'email', | |
'https://www.googleapis.com/auth/contacts.readonly', | |
], | |
listen:(account){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mvc_pattern/mvc_pattern.dart'; | |
/// Notice 'the rest of the app' has no idea this Dart file even exists. | |
import 'Model.dart'; | |
class Con extends ControllerMVC { | |
factory Con(){ | |
if(_this == null) _this = Con._(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mvc_pattern/mvc_pattern.dart'; | |
/// Notice 'the rest of the app' has no idea this Dart file even exists. | |
import 'Model.dart'; | |
class Controller extends ControllerMVC { | |
Controller() { | |
con = this; | |
} | |
static Controller con; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mvc_pattern/mvc_pattern.dart'; | |
/// Notice 'the rest of the app' has no idea this Dart file even exists. | |
import 'Model.dart'; | |
class Controller extends ControllerMVC { | |
Controller() { | |
con = this; | |
} | |
static Controller con; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mvc_pattern/mvc_pattern.dart'; | |
/// Notice 'the rest of the app' has no idea this Dart file even exists. | |
import 'Model.dart'; | |
class Controller extends ControllerMVC { | |
Controller() { | |
con = this; | |
} | |
static Controller con; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:ads/ads.dart'; | |
import 'package:firebase_admob/firebase_admob.dart'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async' show Future; | |
import 'package:flutter/material.dart'; | |
import 'package:prefs/prefs.dart'; | |
void main() { | |
runApp(new MyApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
mvc_application: | |
git: | |
url: git://github.com/AndriousSolutions/mvc_application.git | |