This file contains hidden or 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
// https://github.com/X-Wei/flutter_catalog/issues/131 | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { |
This file contains hidden or 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:hive/hive.dart'; | |
/////////////// 'vehicle.dart' /////////////// | |
@HiveType(typeId: 0) | |
class Vehicle extends HiveObject { | |
@HiveField(0) | |
String name; | |
} | |
@HiveType(typeId: 1) |
This file contains hidden or 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
[ +21 ms] executing: [$HOME/.local/bin/flutter/] git log -n 1 --pretty=format:%H | |
[ +23 ms] Exit code 0 from: git log -n 1 --pretty=format:%H | |
[ ] 2e540931f73593e35627592ca4f9a4ca3035ed31 | |
[ ] executing: [$HOME/.local/bin/flutter/] git describe --match v*.*.* --first-parent --long --tags | |
[ +8 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags | |
[ ] v1.7.8+hotfix.2-0-g2e540931f | |
[ +9 ms] executing: [$HOME/.local/bin/flutter/] git rev-parse --abbrev-ref --symbolic @{u} | |
[ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} | |
[ ] origin/stable | |
[ ] executing: [$HOME/.local/bin/flutter/] git ls-remote --get-url origin |
This file contains hidden or 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
// Copyright 2016 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_markdown/flutter_markdown.dart' show SyntaxHighlighter; | |
import 'package:string_scanner/string_scanner.dart'; | |
class SyntaxHighlighterStyle { | |
SyntaxHighlighterStyle( |
This file contains hidden or 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
// Sliver appbar with tabs. | |
// Adapted from: https://stackoverflow.com/a/50858058 | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MaterialApp( | |
home: SilverAppBarWithTabBarScreen(), | |
)); | |
class SilverAppBarWithTabBarScreen extends StatefulWidget { |
This file contains hidden or 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
# coding: utf-8 | |
import requests | |
from lxml import etree | |
import os, time, sys | |
import cPickle as pk | |
reload(sys) | |
sys.setdefaultencoding('utf-8') # to avoid encoding problems | |
hea = { |