About 3,710,000 results
Open links in new tab
  1. Send data to a new screen - Flutter

    Apr 2, 2025 · When a todo is tapped, navigate to a new screen (widget) that displays information about the todo. This recipe uses the following steps: Define a todo class. Display a list of todos. Create a detail screen that can display information about a todo. Navigate and pass data to the detail screen. 1. Define a todo class.

  2. Retrieve the value of a text field | Flutter

    Apr 2, 2025 · In this recipe, learn how to retrieve the text a user has entered into a text field using the following steps: Create a TextEditingController. Supply the TextEditingController to a TextField. Display the current value of the text field.

  3. Retrieve Data From TextFields in Flutter - GeeksforGeeks

    Mar 7, 2025 · In this article, we’ll learn how to retrieve data from TextFields. TextField() widget is the most common widget used in flutter apps to take user input. We’ll talk about two major methods used to extract text from TextField. Using Variables. The TextField widget has various callback properties through which we can extract text.

  4. flutter - Show TextField value on same screen on button click

    In your button, set onPressed to change display text to the controller text. FlatButton( child: Text("Show"), onPressed()=> setState((){display = controller.text;}); ), Then where you want to show the text, set the text string to display.

  5. navigation - how to fill data in text field in flutter - Stack Overflow

    Oct 14, 2019 · For a simpler solution, you can store the data a Map<String, dynamic> (can also be `Map>. On every TextFormField's onSave or onChange, you can set the value of the Map. Example: // We set the initial value of the text field here. initialValue: _map['firstName'] ?? '', onSave: (String value) { _map['firstName'] = value;

  6. Mastering TextField in Flutter: A Comprehensive Guide with

    Dec 27, 2023 · In Flutter, the TextField widget is a fundamental component for capturing user input. It enables users to enter text, numbers, or other types of data through an on-screen keyboard. Flutter’s...

  7. TextFields Data in Flutter: A Comprehensive Guide - Developers …

    Feb 23, 2023 · TextFields are a crucial widget for gathering user data, but retrieving that data can be tricky. In this blog post, we’ll cover everything you need to know about retrieving data from TextFields in Flutter.

  8. How to show user data in Text or TextField flutter

    Aug 23, 2020 · While receiving data, I gave the Container a constant height and set maxLines: 10000 for the TextField, so as the user writes in without overflowing outside the Container, the text moves up inside the Container. Is there a structure where I …

  9. Create and style a text field - Flutter

    Feb 12, 2025 · Text fields allow users to type text into an app. They are used to build forms, send messages, create search experiences, and more. In this recipe, explore how to create and style text fields. Flutter provides two text fields: TextField and TextFormField.

  10. Input & forms - Flutter

    Apr 4, 2024 · Create and style a text field; Retrieve the value of a text field; Handle changes to a text field; Manage focus in text fields; Build a form with validation

  11. Some results have been removed
Refresh