rajput-hemant / calculator

A Simple but elegant Calculator app made with Flutter using Google's Material Design with Currency (Exchange Rate) and Unit Converter.
GNU General Public License v3.0
64 stars 18 forks source link

Autofocused TextField in TabView Mode causes RangeError in Exchange Rate Screen #73

Open rajput-hemant opened 1 year ago

rajput-hemant commented 1 year ago

I encountered an issue with the app's TabView mode where, upon switching to the Exchange Rate screen, the autofocus feature of the TextField throws a RangeError if the TextField is not manually focused. The error message displayed is as follows:

RangeError (end): Invalid value: Not in inclusive range 0..1: -1.

Steps to Reproduce:

When TabView is enabled:

When TabView is disabled:

Expected Behavior:

When in TabView Mode, the autofocused TextField in the Exchange Rate screen should accept input without requiring manual focus.

Please let me know if any further information is needed to investigate and resolve this issue. Thank you!