Skip to content

Instantly share code, notes, and snippets.

View KingIdee's full-sized avatar
🌴
On vacation

Idorenyin Obong KingIdee

🌴
On vacation
View GitHub Profile
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(
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/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 '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
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
// 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());
@KingIdee
KingIdee / README-Template.md
Created April 17, 2018 19:21 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

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.

Prerequisites

public class Food {
public static Meal getMeal(String name){
FoodDb foodDb = new FoodDb();
row = foodDb.getMeal(name);
return new Meal(row);
}
}