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.
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.
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!
Sponsored links
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.
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.
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!
Dart and Flutter

Flutter Date and Time picker without additional dependencies

There are many packages in pub.dev for date time picker but Flutter offers beautiful date and time pickers. We actually...
Dart and Flutter

Flutter Convert TimeOfDay to 24 hours format

Are you looking for a way to show time in 24 hours format e.g. 13:35? Let's define an extension for TimeOfDay. You can use it everywhere once you define it.
Dart and Flutter

Flutter Apply text style to a target tree

If text style needs to be applied to a Text widget, it's easy to apply but if there are many widgets we don't want to a...
Dart and Flutter

Flutter Line chart with a great graph tool Fl_Chart

I wanted to show a graph for my application, so I looked for some tools and found a great tool called fl_chart. I tried...
Copied title and URL