Posts

Showing posts with the label Flutter

Flutter Explained: One Codebase, Every Screen for Apps

A small team ships an ordering app for a local cafe. The owner wants it on iPhone and Android, the budget covers one developer, and the deadline is six weeks. Building the same screens twice, in Swift and in , means every bug fix lands in two places. That is the problem Flutter is built for: one codebase, one set of screens, on both phones. The trade is real: you bet on Google's framework and on Dart, a language most developers have never written. void main() { final tasks = [ {'title': 'Buy milk', 'done': true}, {'title': 'Call dentist', 'done': false}, {'title': 'File invoice', 'done': false}, ]; final pending = tasks.where((t) => t['done'] == false).toList(); print('Pending: ${pending.length}'); for (final t in pending) { print('- ${t['title']}'); } } Output: Pending: 2 - Call dentist - File invoice A list, a filter, a loop. If you c...

Dart Explained: Google's Language Behind Flutter Apps

A freelancer keeps monthly expenses in a JSON file: hosting, tools, coffee, a few lines each. The question is simple, how much went to each category, and the tool for the job should be small, fast to write, and strict enough to catch a missing number before it becomes a wrong total. That is the exact shape of problem Dart is built for. It is the language behind Flutter, Google's framework for building apps from one codebase, and it is also a capable language for small command-line tools, which is how this post uses it. Quick answer Dart is Google's typed, null-safe language for Flutter apps and small command-line tools. It catches missing values at compile time, handles JSON with explicit casts and defaults, and uses / for division that keeps fractions, so a money total stays exact. What I would check before using it My judgement is that Dart is the obvious choice when Flutter is the target, and a reasonable choice for a small command-line tool, and a hard sell anywhere els...