Skip to content

Make the package Dart 2 compatible #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.1.1] - TODO: 17-11-2018.

* Updated description and fix image links.

## [0.1.0] - TODO: 30-09-2018.

* Updated environment sdk constraints to make the package Dart 2 compatible.

## [0.0.1] - TODO: 27-05-2018.

* The flutter_dialogflow makes it easy to integrate dialogflow
* This package help to integrate Dialogflow into Flutter apps. Initial commit by VictorRancesCode.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# flutter_dialogflow
# Dialogflow package for Flutter apps.

A new Flutter package.
* [Example](https://github.com/VictorRancesCode/flutter_dialogflow/tree/master/example)
This package is modified from [VictorRancesCode's package](https://github.com/VictorRancesCode/flutter_dialogflow) for compatible with Dart 2.
* [Example](https://github.com/ngoan98tv/flutter_dialogflow/tree/master/example)


<p align="center">
<img src="image1.png" width="350"/>
<img src="https://raw.githubusercontent.com/ngoan98tv/flutter_dialogflow/master/image1.png" width="350"/>
</p>

## Installation

* Add this to your package's pubspec.yaml file:
```
dependencies:
flutter_dialogflow: "^0.0.1"
dialogflow: "^0.1.0"
```
* You can install packages from the command line:
with Flutter:
Expand All @@ -23,7 +23,7 @@ $ flutter packages get

* Import it Now in your Dart code, you can use:
```
import 'package:flutter_dialogflow/flutter_dialogflow.dart';
import 'package:dialogflow/dialogflow.dart';
```


Expand All @@ -38,7 +38,7 @@ $ flutter packages get
* Example
```
void Response(query) async {
Dialogflow dialogflow = Dialogflow(token: "10178f9cb6cf12321asdf4aae75c87cd");
Dialogflow dialogflow = Dialogflow(token: "Your token goes here");
AIResponse response = await dialogflow.sendQuery(query);
print(response.getMessageResponse());
}
Expand Down
Binary file added build/testfile.dill
Binary file not shown.
8 changes: 0 additions & 8 deletions example/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_dialogflow/flutter_dialogflow.dart';
import 'package:dialogflow/dialogflow.dart';
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
Expand Down Expand Up @@ -57,7 +57,7 @@ class _MyHomePageState extends State<MyHomePage> {

void Response(query) async {
_textController.clear();
Dialogflow dialogflow =Dialogflow(token: "10178f9cb6cf44288a4af4aae75c87cd");
Dialogflow dialogflow =Dialogflow(token: "Your own token");
AIResponse response = await dialogflow.sendQuery(query);
ChatMessage message = new ChatMessage(
text: response.getMessageResponse(),
Expand Down
Loading