Repository: flutter
Issue:   canvas.drawLine() does not paint correctly on Samsung Galaxy Note 20 Ultra
Labels: a: text input,e: device-specific,platform-android,framework,engine,f: material design,dependency: skia,c: rendering,P2,e: samsung,team-android,triaged-android,found in release: 3.19

## Steps to Reproduce

1. Execute `flutter run` on the code sample using Samsung Galaxy S4 (GT-I9500)

**Expected results:** <!-- what did you want to see? -->

[Dartpad code](https://dartpad.dev/?id=a02554870741d78d26f0669b808ae5ab)

<img src="https://user-images.githubusercontent.com/63793311/187190642-b49b630f-0076-402c-81df-1fadd8e85dac.jpg" width=25% height=35%>

**Actual results:**


<img src="https://user-images.githubusercontent.com/63793311/187190898-b5ee1348-3450-4b72-a46e-8d573282a1d1.png" width=25% height=30%>
<details>
<summary>Code sample</summary>


```
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(debugShowCheckedModeBanner: false,
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('UnderlineInputBorder'),centerTitle: true,),
      body: Container(
        margin: EdgeInsets.all(20),
        child: TextField(
          decoration: InputDecoration(enabledBorder: UnderlineInputBorder()),
        ),
      ),
      
    );
  }
}

```

</details>

<details>
<summary>Flutter Doctor</summary>


```
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.19044.1889], locale en-US)
    • Flutter version 3.0.5 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (7 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6       
    • DevTools version 2.12.2   

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\****\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java     
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.2.32630.192
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with
      C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.70.2)
    • VS Code at C:\Users\*****\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (5 available)
    • GT I9500 (mobile) • 4d009104ce6550bf                             • android-arm    • Android 5.0.1 (API 21)
    • SM A536E (mobile) • adb-R5CT21L8F4N-l1CDkM._adb-tls-connect._tcp • android-arm64  • Android 12 (API 31)
    • Windows (desktop) • windows                                      • windows-x64    • Microsoft Windows [Version
      10.0.19044.1889]
    • Chrome (web)      • chrome                                       • web-javascript • Google Chrome 104.0.5112.102
    • Edge (web)        • edge                                         • web-javascript • Microsoft Edge 104.0.1293.70


[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

```

</details>
 
 
Other devices are painting as expected, however I got painting issue on this device (GT-I9500). A year ago I faced similar painting issue discussed here:  [BoxDecoration has bug when using both Border and BorderRadius](https://github.com/flutter/flutter/issues/86794)

I tried to change **UnderlineInputBorder** to **OutlineInputBorder** and got expected results without any issues, because OutlineInputBorder uses  `canvas.drawPath()` to draw it. 
On the other side, UnderlineInputBorder uses `canvas.drawLine() ` which is causing this issue.  

If I am not wrong **drawLine** calls native code called **Canvas_drawLine**