Tint icon:
convert icon.png -fill <color> -colorize 100 out.png
def string1 = """\ | |
001001 | |
000101 | |
000101 | |
""" | |
def string2 = """\ | |
10 | |
01 | |
01 |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<polymer-element name="my-element"> |
public struct AnyCodable { | |
let value: Any | |
public init(_ value: Any) { | |
self.value = value | |
} | |
} | |
extension AnyCodable: Codable { | |
public init(from decoder: Decoder) throws { |
plugins { | |
id("com.android.application") | |
} | |
android { | |
defaultConfig { | |
applicationId = "com.example.task" | |
versionCode = 1 | |
versionName = "1.0" | |
} |
Tint icon:
convert icon.png -fill <color> -colorize 100 out.png
find . -name "pubspec.yaml" -execdir sh -c 'rm pubspec.lock; flutter packages get' \; |
rm -rf ~/.dartServer/.analysis-driver |
This script creates/maintains a symlink to the Flutter SDK of choice. It provides a way to quickly switch Flutter SDK version globally for the whole system.
flutter_version.sh
into your home folderchmod +x flutter_version.sh
~/Documents/SDKs
on line 16 with a path to the folder where you want to store the Flutter SDK versions<SDKs path>/flutter_versions
folder and name them conveniently. Something like 1.12
and 1.16_beta
will work well./flutter/bin
into PATHimport 'dart:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
main() { | |
final list1 = const <int>[]; | |
final list2 = const <int>[]; | |
print(identical(list1, list2)); | |
list1.add(666); | |
print(list1[0]); | |
print(list2[0]); | |
} |