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
// crate in web/app.js | |
// Function to download data to a file | |
function download(data, filename, type) { | |
var file = new Blob([data], {type: type}); | |
if (window.navigator.msSaveOrOpenBlob) // IE10+ | |
window.navigator.msSaveOrOpenBlob(file, filename); | |
else { // Others | |
var a = document.createElement("a"), | |
url = URL.createObjectURL(file); | |
a.href = url; |
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'; | |
// Base on https://m3.material.io/styles/shape/shape-scale-tokens | |
class BorderRadiusM3 { | |
static BorderRadius none = BorderRadius.circular(0); | |
static BorderRadius extraSmall = BorderRadius.circular(4); | |
static BorderRadius extraSmallTop = const BorderRadius.only( | |
bottomLeft: Radius.circular(0), |
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
Afghanistan | |
Aland Islands | |
Albania | |
Algeria | |
American Samoa | |
Andorra | |
Angola | |
Anguilla | |
Antarctica | |
Antigua and Barbuda |
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
{ | |
"@@locale": "en", | |
"pageHomeListTitle": "Some localized strings:", | |
"pageHomeSamplePlaceholder": "Welcome {name}", | |
"pageHomeSamplePlaceholdersOrdered": "My name is {lastName}, {firstName} {lastName}", | |
"@pageHomeSamplePlaceholdersOrdered": { | |
"placeholders": { | |
"firstName": {}, | |
"lastName": {} | |
} |
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
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility that Flutter provides. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'package:ahille/calculator_test.dart'; | |
import 'package:ahille/home_page.dart'; | |
import 'package:flutter/material.dart'; |