issues with multi-line

Actions & Logic

Hi everyone,

So i have this app which allow user to input something in the text field then later on will be passed as an argument in an api call, but i'm having trouble when user input a line break (starting a new line) in the input where it just got stuck

What have you tried so far?

tried to replace the \n by \\n using this function but still doesnt work

String escapeLineFeeds(String input) {

/// MODIFY CODE ONLY BELOW THIS LINE

return input.replaceAll('\n', '\\n');

/// MODIFY CODE ONLY ABOVE THIS LINE

}

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply