© Frank Zammetti 2019
Frank ZammettiPractical Flutterhttps://doi.org/10.1007/978-1-4842-4972-7_8

8. FlutterChat, Part II: The Client

Frank Zammetti1 
(1)
Pottstown, PA, USA
 

In the previous chapter, we built the server side of FlutterChat, providing a WebSocket/socket.io-based API for the client-side of the app to use.

Now, it’s time to build that client-side. Get ready, here comes FlutterChat: Flutter edition!

Model.dart

Although it might seem odd, rather than starting in the usual main.dart file, we’re instead going to start with the source file Model.dart , which contains the code for the single scoped model that this app will use (so, as you saw with FlutterBook, scoped_model is a dependency in pubspec.yaml here as well). This file contains the class ...

Get Practical Flutter: Improve your Mobile Development with Google’s Latest Open-Source SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.