Jaime Tellez Software Engineering Blog
website·Indexed 30 days ago
https://jaimetellezb.comA collection of programming guides and tutorials covering Dart, Flutter, and static site generators like Jekyll and Hugo. Content includes Dart basics (operators, records, collections, and control flow), Flutter widget implementation (AppBar and basic widgets), and integration guides such as Supabase authentication for Flutter.
What's inside Jaime Tellez Blog
- Flutter is an SDK developed by Google for building mobile applications (iOS and Android) as well as web applications. It is built using the Dart programming language.
Overview of the Flutter Card widget
TheCardwidget in Flutter is used to group and display organized information within a container. It typically features rounded corners and an elevation shadow to create a sense of depth, making it ideal for displaying related content such as text, images, and actions.Overview of the Flutter ListTile widget
TheListTilewidget is used to create horizontal list items that typically contain text, icons, and images. It supports three vertical size variations (one, two, or three lines) and is commonly used withinListView,Card,Column, orDrawerwidgets to display lists of selectable items or alphabetical listings.Overview of Flutter GridView Widget
TheGridViewwidget in Flutter is used to create lists with a grid layout, making it ideal for displaying items like cards where a preview of information is needed in a structured grid.Overview of Dart Records
Introduced in Dart 3.0, Records are anonymous, immutable, fixed-size, and typed groupings of multiple values. They allow developers to group values of different types without needing to define a formal class.Overview of Flutter ListView constructors
Flutter provides several
ListViewconstructors depending on the size and nature of the data being displayed:ListView: Takes a fixed list of widgets. Best for small, static lists.ListView.builder: Generates elements on demand. Recommended for large or infinite lists to optimize performance by only building visible elements.ListView.separated: Similar to.builderbut includes aseparatorBuilderto place a widget between each item. Recommended for fixed-length lists requiring dividers.ListView.custom: Uses aSliverChildDelegatefor advanced customization of child widgets.
Implement an AlertDialog in Flutter
The
AlertDialogwidget is used to display a modal dialog that alerts the user about important actions requiring attention and confirmation. It overlays the current screen and blocks interaction with the background content.Key properties:
title(Optional): A widget displayed at the top of the dialog.content(Required): A widget containing the main message or information.actions(Optional): A list of widgets (typically buttons) displayed at the bottom for user interaction.
showDialog( context: context, builder: (context) { return AlertDialog( title: const Text('AlertDialog básico'), content: const Text( 'Podemos colocar información representativa\n' 'para indicar al usuario\n' 'cuál es el fin de las acciones\n' 'que tiene para realizar.', ), actions: [ TextButton( child: const Text('Cancelar'), onPressed: () { Navigator.of(context).pop(); }, ), TextButton( child: const Text('Aceptar'), onPressed: () { Navigator.of(context).pop(); }, ), ], ); }, );Understand and use Sets in Dart
In Dart, aSetis a collection of unique elements where duplicates are not allowed and there is no guaranteed specific order (unlike Lists).// Examples of sets Set<int> numbers = {1, 2, 3, 4, 5}; Set<String> colors = {'Amarillo', 'Azul', 'Rojo conseg}; var sports = {'Fútbol', 'Ciclismo', 'Tenis'};Understand the default Flutter project structure
When a new Flutter project is created, it generates a predefined directory structure to minimize environment configuration time. The project is organized into platform-specific folders and shared configuration files.Access App Monedero for personal finance management
App Monedero is an application designed for managing personal finances and expenses. It can be accessed via its web portal.Implement SegmentedButton for multi-option selection
The
SegmentedButtonwidget allows users to select one or more options from a set. It is ideal for filtering lists or switching views. It typically contains 2 to 5 segments, each consisting of an icon and/or text. When selected, the icon often changes to a checkmark (√).Selection Modes:
- Single Selection: Only one option can be selected at a time (e.g., selecting a t-shirt size).
- Multiple Selection: Multiple options can be selected simultaneously (e.g., combining transport filters).
Play Juego Triqui (Tic-Tac-Toe)
Juego Triqui is a game where the objective is to form a line of three identical characters (X or O).