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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(new MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:intl/intl.dart' hide TextDirection; | |
| void main() { | |
| runApp(new ChartDemo()); | |
| } | |
| class ChartDemo extends StatelessWidget { | |
| @override |
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
| @Test | |
| public void testSubscribeString(final TestContext ctx) throws Exception { | |
| final Async async = ctx.async(); | |
| final EventBusClient client = client(ctx); | |
| client.consumer("client_addr", new Handler<Message<Object>>() { | |
| @Override | |
| public void handle(Message<Object> event) { | |
| ctx.assertEquals("hello", event.body()); | |
| async.complete(); | |
| client.close(); |