mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() This makes it possible to substitute 'flutter run' for 'flutter test' and actually watch a test run on a device. For any test that depends on flutter_test: 1. Remove any import of 'package:test/test.dart'. 2. Replace `testWidgets('...', (WidgetTester tester) {` with `testWidgets('...', (WidgetTester tester) async {` 3. Add an "await" in front of calls to any of the following: * tap() * tapAt() * fling() * flingFrom() * scroll() * scrollAt() * pump() * pumpWidget() 4. Replace any calls to `tester.flushMicrotasks()` with calls to `await tester.idle()`. There's a guarding API that you can use, if you have particularly complicated tests, to get better error messages. Search for TestAsyncUtils. |
||
---|---|---|
.. | ||
example | ||
lib | ||
test | ||
pubspec.yaml | ||
README.md |
Flutter Markdown
A markdown renderer for Flutter. It supports the original format, but no inline html.
Getting Started
Using the Markdown widget is simple, just pass in the source markdown as a string:
new Markdown(data: markdownSource);
If you do not want the padding or scrolling behavior, use the MarkdownBody instead:
new MarkdownBody(data: markdownSource);
By default, Markdown uses the formatting from the current material design theme, but it's possible to create your own custom styling. Use the MarkdownStyle class to pass in your own style. If you don't want to use Markdown outside of material design, use the MarkdownRaw class.