Flutter Generics in Dart and Flutter Flutter code uses Dart generics all over the place to ensure object types are what we expect them to be. Simply put, generics are a way to code a class or function so that it works with a range of data types instead of
Flutter Inheritance, Polymorphism, and Composition in Dart and Flutter There is a trend in software development away from the deep, branching class trees popular with object-oriented languages. Some believe newer functional paradigms should outright replace OOP in software design. This leaves many with the idea that inheritance has no place in software construction
Flutter Creating Objects and Classes in Dart and Flutter Dart has some conventions and special syntax to be aware of when designing classes and instantiating objects of those classes. There is more than one way to do almost anything, but what are the best practices in Dart? Here, we'll explore a few for class design and object instantiation.
Beginner Web Games with Dart and the HTML5 Canvas: Snake With many of the advanced organizational structures of heavy hitters like C++ and Java, but featuring simpler semantics and a lightweight syntax for common web idioms, Dart is a great language for building web games. Are you ready to learn how to write games
Intermediate Web Games with Dart: Hangman Well, here we are again, sports fans. We're going to whip out a stupid simple game application in order to demonstrate some key programming principles, as well as highlight the power and simplicity of Dart. Hangman is a game as old as time (or
Frontend Easy JavaScript Interop Without Dart Wrappers Most of the Dart web developers I know do their best to avoid using JavaScript in their projects when they can, but it's not always possible. Sometimes you've just gotta have that one JS library in your project that does exactly what you need,
Angular Build a Real-Time Chat Web App with AngularDart and Firebase In this tutorial, you're going to build a real-time chat web app that supports Google authentication and both text and image messages, and you're going to do it without writing a single line of server-side code. "But how?" you may exclaim. Dart,
Angular Create a Structural Directive with AngularDart Creating directives is a big part of taking full advantage of all that the Angular framework has to offer, and the best way to take advantage of Angular is with Dart. If you've ever created a directive, it was probably an attribute directive, and
Advanced A Simple Attribute Directive in AngularDart In the tutorial Build a Real-Time Chat Web App with AngularDart and Firebase, I included a couple of attribute directives to help make the UI feel a bit nicer. One of them made sure the chat viewport scrolled to the bottom with the arrival
Angular Pipe Tricks with AngularDart Pipes in Angular (known as filters in Angular 1.x) are a nice, convenient way to keep your application data clean, unsullied by visual artifacts, but still present that data to your users in an attractive way. Currency would be a good example of
Intermediate Environment Variables in JavaScript using dart2js Environment variables are cool. On the server side you can set some environment variables which will let you switch some functionality or value when deploying to production. But what about front-end apps? What's the best way to have a development and production "environment&
Intermediate Web Games with Dart: Ultimate Tic-Tac-Toe Let's build a web game with Dart! Ever played Tic-Tac-Toe? Sucks, right? It's not even ultimate. But Ultimate Tic-Tac-Toe is! Since Dart is the ultimate web language, this will truly be a match made in heaven. Note: This tutorial's full code is available on