-
First item
Can have more paragraphs, not just one
code
import 'package:flutter/material.dart'; | |
import 'package:parallax_image/parallax_image.dart'; | |
class ArticlePage extends StatefulWidget { | |
@override | |
ArticlePageState createState() { | |
return new ArticlePageState(); | |
} | |
} |
/// This is pseudo-code which drafts possible way of using Google's `actions-on-google` Node.js package. | |
/// This code has not been tested, compiled or ran anywhere. | |
@JS() | |
library actionssdk; | |
import 'package:firebase_functions_interop/firebase_functions_interop.dart'; | |
import 'package:js/js.dart'; | |
import 'package:js/js_util.dart'; | |
import 'package:node_interop/node_interop.dart'; |
import 'package:flutter/widgets.dart'; | |
class Annotation extends Comparable<Annotation> { | |
Annotation({@required this.range, this.style}); | |
final TextRange range; | |
final TextStyle style; | |
@override | |
int compareTo(Annotation other) { | |
return range.start.compareTo(other.range.start); |
class _MyHomePageState extends State<MyHomePage> { | |
int _counter = 0; | |
bool _hide = false; | |
FocusNode _focusNode; | |
@override | |
void initState() { | |
super.initState(); | |
_focusNode = new FocusNode(); | |
_focusNode.addListener(_handleFocusChange); |
#include <assert.h> | |
#include <chrono> | |
#include <embedder.h> | |
#include <glfw3.h> | |
#include <iostream> | |
static_assert(FLUTTER_ENGINE_VERSION == 1, ""); | |
static const size_t kInitialWindowWidth = 800; |
import 'dart:async'; | |
void main() { | |
// We retrieve boolean value 3 times in the for-loop below and print it. | |
for (var i = 1; i <= 3; i++) { | |
print('Printing "$value" $i time.'); | |
} | |
} | |
/// Internal cache for our value. |
# Workaround which: | |
# * Starts observatory in background | |
# * Runs the test suite | |
# * Collects coverage and sends it to Codecov | |
# | |
# Someday the `test` package will support observatory and below steps | |
# could be simplified. | |
# | |
# Prerequisites: | |
# * Have Travis CI build for your repo |