Skip to content

Instantly share code, notes, and snippets.

View evanca's full-sized avatar
🎯
Be so good they can't ignore you

Ivanna evanca

🎯
Be so good they can't ignore you
View GitHub Profile
@evanca
evanca / main.dart
Last active November 7, 2023 15:30
SnowflakeCanvas
/// Designed as a submission for Flutteristas Code Challenge 2023, the SnowflakeCanvas
/// is a simple Flutter app that creates a visual simulation of snowflakes
/// falling at different speeds. It uses a `CustomPainter` and a `Koch curve`
/// to draw snowflakes on a canvas, with each snowflake having a unique size and
/// falling speed. The snowflakes enter the screen smoothly from the top and reset
/// their position once they fall off the bottom, creating an endless snowfall effect.
/// This app uses basic animation techniques with `setState` and is designed to work
/// in environments with limited animation capabilities such as DartPad.
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'highscore.dart';
void main() {
runApp(const MyApp());
}
import 'dart:convert';
import 'package:shared_preferences/shared_preferences.dart';
class HighScore {
final String username;
final int difficulty;
final int score;
HighScore(
@evanca
evanca / main.dart
Created September 14, 2018 12:36
Create your very first app in Flutter
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
@evanca
evanca / AndroidManifest.xml
Created April 4, 2018 07:31
Android Useful Resources / Retrieve the last known location for a device https://github.com/googlesamples/android-play-location/tree/master/BasicLocationSample
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2014 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@evanca
evanca / layout-sw600dp_activity_main.xml
Last active January 24, 2018 08:10
600dp Layout / Google Developer Challenge Scholarship - Android Basics / Quiz App
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:id="@+id/main_linear"
package com.example.android.friendsquiz;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
@evanca
evanca / MainActivity.java
Last active January 24, 2018 07:45
Google Developer Challenge Scholarship - Android Basics / Quiz App
package com.example.android.friendsquiz;
import android.content.Intent;
import android.content.res.Configuration;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
@evanca
evanca / MainActivity.java
Last active January 8, 2018 10:55
Google Developer Challenge Scholarship - Android Basics / Court Counter
package com.example.android.courtcounter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
/**
@evanca
evanca / activity_main.xml
Created November 15, 2017 09:01
Google Developer Challenge Scholarship - Android Basics / Hello Android
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/photo_image_view"
android:layout_width="match_parent"