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/material.dart'; | |
// | |
// Created by Braulio Cassule | |
// 30 December 2017 | |
// | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { |
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
Future<Null> _handleSignIn() async { | |
print("handleSignIn"); | |
try { | |
GoogleSignInAccount googleUser = await _googleSignIn.signIn(); | |
GoogleSignInAuthentication googleAuth = await googleUser.authentication; | |
await _auth.signInWithGoogle( | |
accessToken: googleAuth.accessToken, | |
idToken: googleAuth.idToken, |
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
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | |
if (drawable instanceof Animatable2) { | |
avd = (AnimatedVectorDrawable) drawable; | |
avd.registerAnimationCallback(new Animatable2.AnimationCallback() { | |
@Override | |
public void onAnimationStart(Drawable drawable) { | |
super.onAnimationStart(drawable); | |
//Animation started | |
} |
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
if (drawable instanceof Animatable) { | |
((Animatable) drawable).start(); | |
new Handler().postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
startActivity(new Intent(SplashActivity.this, MainActivity.class)); | |
} | |
}, 3000); | |
} |
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
ImageView flagImage = findViewById(R.id.flag_image); | |
Drawable drawable = flagImage.getDrawable(); | |
AnimatedVectorDrawable avd; |
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
<ImageView | |
android:id="@+id/flag_image" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:srcCompat="@drawable/angolan_flag" | |
android:layout_gravity="center" | |
android:scaleType="centerCrop" | |
android:padding="50dp"/> |
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
╞═══════════════════════════════════════════════════════════ | |
[ +18 ms] I/flutter (29191): The following _CompileTimeError was thrown building GoogleMap(dirty, state: _GoogleMapState#5fffc): | |
[ ] I/flutter (29191): 'file:///C:/Users/Braulio/AppData/Roaming/Pub/Cache/git/plugins-5b45f58ccab7009d473d6c767e9e40ddcabedde3/packages/google_maps_flutter/lib/src/google_map.dart': | |
[ ] I/flutter (29191): error: line 42 pos 36: | |
[ ] I/flutter (29191): file:///C:/Users/Braulio/AppData/Roaming/Pub/Cache/git/plugins-5b45f58ccab7009d473d6c767e9e40ddcabedde3/packages/google_maps_flutter/lib/src/google_map.dart:42:36: | |
[ ] I/flutter (29191): Error: The argument type 'dart.core::Set<invalid-type>' can't be assigned to the parameter type | |
[ ] I/flutter (29191): 'dart.core::List<#lib1::OneSequenceGestureRecognizer>'. | |
[ ] I/flutter (29191): Try changing the type of the parameter, or casting the argument to | |
[ ] I/flutter (29191): 'dart.core::List<#lib1::OneSequenceGestureRecognizer>'. | |
[ |
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
class ClippedCard extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return ClipPath( | |
clipper: CardClipper(35.0), | |
child: Container( |
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
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"github.com/tiaguinho/gosoap" | |
"log" | |
) | |
type GetHolidaysForMonthResponse struct { |
OlderNewer