• xster's avatar
    Create a text validator/formatter mechanism (#9535) · f65fea8e
    xster authored
    * Add a text formatter interface used by EditingText. Provide some default implementations.
    
    * self nits
    
    * Handle -1 selection offsets
    
    * review notes
    
    * simplify regular expression
    
    * Add whitelisting formatters. Use a custom phone number formatter in text demo.
    
    * review notes
    
    * not being able to addAll(null) is pretty annoying
    
    * review notes
    
    * partial tests
    
    * Add tests
    
    * didn’t end up needing mockito
    
    * move to services
    f65fea8e
text_form_field.dart 2.26 KB