Flutter: разница в стиле TextField на Android и iOS - PullRequest
0 голосов
/ 02 декабря 2018

У меня TextField

Container(
  padding: const EdgeInsets.only(top: 50.0),
  child: TextField(
    style: new TextStyle(color: Colors.white),
    decoration: InputDecoration(
      prefixIcon: Container(
          padding: const EdgeInsets.only(bottom: 4),
          child: Image.asset('assets/images/profile.png')),
      labelText: Strings.whatIsYourName,
      labelStyle: TextStyle(color: Colors.white),
      helperStyle: TextStyle(color: Colors.white),
      enabledBorder: const OutlineInputBorder(
        borderSide: const BorderSide(color: Colors.white, width: 0.5),
        borderRadius: const BorderRadius.all(Radius.circular(10.0)),
      ),
      border: const OutlineInputBorder(
        borderRadius: const BorderRadius.all(Radius.circular(10.0)),
      ),
    ),
  ),
),

Почему это выглядит по-разному с одним и тем же кодом на Android и iOS?Почему в Android это выглядит как паутина

enter image description here

...