$ dart create -t console-full cli
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
// app -> android -> settings.gradle | |
// Please add this in flutte | |
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() | |
def plugins = new Properties() | |
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') | |
if (pluginsFile.exists()) { | |
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } | |
} |
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
// path = android/app/build.gradle | |
// add this line in android { defaultConfig { <here> } } | |
multiDexEnabled true |
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
// Esteja no diretorio que contenha o keytool ou o defina globalmente | |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |
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
final GitHubSignIn gitHubSignIn = GitHubSignIn( | |
clientId: "<ClientId>", | |
clientSecret: | |
"<ClientSecret>", | |
redirectUrl: | |
"<CallBack>"); | |
var result = await gitHubSignIn.signIn(context); | |
switch (result.status) { | |
case GitHubSignInResultStatus.ok: | |
print(result.token); |
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:flutter/widgets.dart'; | |
class SizeConfig { | |
static MediaQueryData _mediaQueryData; | |
static double screenWidth; | |
static double screenHeight; | |
static double blockSizeHorizontal; | |
static double blockSizeVertical; | |
static double _safeAreaHorizontal; | |
static double _safeAreaVertical; |
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
final GitHubSignIn gitHubSignIn = GitHubSignIn( | |
clientId: "", | |
clientSecret: | |
"", | |
redirectUrl: | |
""); | |
var result = await gitHubSignIn.signIn(context); | |
switch (result.status) { | |
case GitHubSignInResultStatus.ok: | |
final AuthCredential credential = |
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
FirebaseAuth.instance.currentUser.getIdToken(); | |
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
//inserir evento | |
Future<dynamic> insertEvent(CalendarStore calendarStore) async { | |
Map<String, String> eventData; | |
String calendarId; | |
v3.Event event = v3.Event(); | |
event.summary = calendarStore.title; | |
event.description = calendarStore.description; |
$ cd cli
$ dart run
OlderNewer