Reader Stacks

GUIDES

Guides — Page 16

Reader Stacks covers PHP, Laravel, Angular, Flutter, DevOps, and security tutorials for working developers.

How to Build Drawer Navigation in Flutter

Use NavigationDrawer for Material 3 destinations, close the drawer before routing, preserve accessible selection, and move to persistent navigation on wider layouts.

How to Use Slider and RangeSlider in Flutter

Flutter sliders are controlled widgets: keep values in state, use SliderTheme for consistent styling, add semantic meaning, and test the state transitions you rely on.

Calling an API in Flutter Using the http Package

http.get() returns the raw response body as a JSON string — decoding it and mapping the result to a typed Dart model are both manual steps the package deliberately leaves to the developer.

Angular File Upload With FormData

File inputs in Angular are uncontrolled — you read the selected File object off a change event, then hand it to the browser's FormData API before sending it with HttpClient.

Hashing and Verifying Passwords in Laravel

Hash::check() never decrypts the stored hash to compare it — bcrypt is one-way by design, so verification works by re-hashing the input and comparing the two hashes instead.

Displaying Local and Remote Images in Flutter

AssetImage for bundled files, NetworkImage for remote URLs — the same Image widget, with a loading and error state that only the network version actually needs to handle.

Angular Directives, ng-container, and Custom Pipes

Directives change a DOM element's behavior or appearance, ng-container groups elements without adding an extra wrapper, and pipes transform a value for display — three distinct Angular template tools.

Creating a Custom 404 Error Page in Laravel

Laravel already looks for resources/views/errors/404.blade.php automatically — no route or controller registration needed, just the right file in the right place.

Conditional Validation Rules in Laravel

requiredIf, requiredUnless, sometimes, and a full closure-based rule all handle a field that should only be validated under a specific condition.