setup local repo
mkdir myrepository
cd myrepository
git init
add bitbucket remote as "origin"
| import 'dart:math' show Random; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart' show RendererBinding; | |
| void main() { | |
| runApp(MaterialApp( | |
| home: Home(), | |
| )); | |
| } |
| #!/bin/sh | |
| # To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script: | |
| # sh ./fluttercleanrecursive.sh | |
| # or | |
| # sudo sh fluttercleanrecursive.sh | |
| echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)" | |
| echo "Looking for projects... (may take a while)" |
| #!/bin/sh | |
| # To run, download the script or copy the code to a '.sh' file (for example 'flutterrepair.sh') and run like any other script: | |
| # sh ./flutterrepair.sh | |
| # or | |
| # sudo sh flutterrepair.sh | |
| echo "Flutter Repair (by jeroen-meijer on GitHubGist)" | |
| echo Cleaning project... |
| package android.app; | |
| import android.content.Context; | |
| import android.graphics.Matrix; | |
| import android.graphics.Rect; | |
| import android.graphics.RectF; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.Parcelable; | |
| import android.os.ResultReceiver; |
| /* | |
| * Copyright (C) 2014 Antonio Leiva Gordillo. | |
| * | |
| * 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 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| public class MyApp extends Application { | |
| @Override | |
| public void onCreate() { | |
| TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf | |
| } | |
| } |