Dart and Flutter Flutter How to implement Bloc like pattern with Riverpod Do you want to move from Bloc pattern with flutter_bloc to Riverpod? Then, let's go through with me. I implemented the same application in both. 2023.04.19 Dart and Flutter
Dart and Flutter Flutter Separate UI and business Logic by Bloc Pattern Code segregation is important for clean code. UI part should be separated from Business Logic. Bloc pattern is one of the solutions in Flutter. Let's learn how to implement it. 2023.04.17 Dart and Flutter
Dart and Flutter Flutter Freezed autogenerates code for copyWith, serialization, and equal Some methods need to be overridden for a data class to copy, compare, and convert from/to JSON. Freezed package auto generates those codes from a simple class definition. Let's try to use it. 2023.04.14 Dart and Flutter
Dart and Flutter I struggled with releasing a Flutter Desktop app ItriedtocreateareleaseforaFlutterDesktopapplicationbutitwasnotstraightforward...IcreatedareleaseforWindowsbutnotforLinux... 2023.03.29 Dart and Flutter
Dart and Flutter Flutter Select rows on DataTable with the control/shift key It's typical behavior that the multiple rows can be selected by the control key or shift key on a Desktop application. How can we implement it in Flutter? Use KeyboardListener to detect the key event. Then, control the selection depending on whether the key is being pressed or not. 2023.03.15 Dart and Flutter
Dart and Flutter Flutter How to delete a row on DataTable by Delete button When showing data on DataTable, we might want to have a feature that deletes selected rows by pressing a Delete key. How is it possible? Use KeyboardListener.I will show you where to put the widget and how to use it in this post. 2023.03.10 Dart and Flutter
Dart and Flutter Flutter How to show selected area on Slider How can we show the selected area on a slider widget? Using Stack is one of the solutions but it's necessary to consider the padding value to show the selected area accurately. Let's learn how to do it! 2023.02.06 Dart and Flutter
Dart and Flutter Flutter How to get widget height, width, x, and y position If the size and position of a widget need to be automatically determined by the Framework, a variable can't be used to know them for another widget. How can we get the width, height, x, and y positions in this case? Use GlobalKey. 2023.02.03 Dart and Flutter
Dart and Flutter Flutter Resize table column by dragging It's better to make the column width resizable if the text in a DataTable is long. This post explains how to do it without any extra package installation. Watch my sample video to check whether the behavior matches your needs. 2023.01.16 Dart and Flutter
Dart and Flutter Flutter DataTable double tap event on DataRow DataTable and DataRow don't offer onDoubleTap. How can we implement onDoubleTap event in DataTable widget? You don't have to install another package! 2023.01.13 Dart and Flutter