One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
public class Food { | |
public static Meal getMeal(String name){ | |
FoodDb foodDb = new FoodDb(); | |
row = foodDb.getMeal(name); | |
return new Meal(row); | |
} | |
} |
// index.js | |
const express = require('express'); | |
const StreamChat = require('stream-chat').StreamChat; | |
const bodyParser = require('body-parser'); | |
const app = express(); | |
const client = new StreamChat('API_KEY', 'API_SECRET'); | |
app.use(bodyParser.json()); |
name: flutterchatapp | |
description: A Flutter chat application built with Stream. | |
version: 1.0.0+1 | |
environment: | |
sdk: ">=2.1.0 <3.0.0" | |
dependencies: | |
flutter: | |
sdk: flutter |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutterchatapp/users_list_page.dart'; | |
import 'package:stream_chat_flutter/stream_chat_flutter.dart'; | |
import 'package:http/http.dart' as http; | |
class LoginPage extends StatefulWidget { | |
@override |
import 'package:flutter/material.dart'; | |
import 'package:flutterchatapp/channel_page.dart'; | |
import 'package:stream_chat_flutter/stream_chat_flutter.dart'; | |
class UsersListPage extends StatefulWidget { | |
@override | |
_UsersListPageState createState() => _UsersListPageState(); | |
} | |
class _UsersListPageState extends State<UsersListPage> { |
import 'package:flutter/material.dart'; | |
import 'package:stream_chat_flutter/stream_chat_flutter.dart'; | |
class ChannelPage extends StatelessWidget { | |
const ChannelPage({ | |
Key key, | |
}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { |
import 'package:flutter/material.dart'; | |
import 'package:flutterchatapp/login_page.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |