Repository: flutter
Issue: Border of widget becomes blurry if centered.
Labels: framework,engine,c: rendering,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-engine,triaged-engine

Similar to [#116278 ](https://github.com/flutter/flutter/issues/116278#issue-1469661628), albeit where instead of the border changing to fit a certain aspect ratio, the border becomes blurry when centred.

The original issue dismisses the aspect ratio "bug" due to the fact that flutter ought render a border with a given logical pixel ratio similarly to the pixel scaling. IE, if a user scales the screen by 100%, the pixel border should increase by 100%

However, I think that the issue I am facing here, while comparable, is different since no scaling is occurring. In the example code below, I am telling flutter to render a border with a constant border size without any scaling, which is why its physical pixel length should also theoretically stay constant. The video shows the border becoming blurry as the width of the window changes.

There is a workaround this issue with the pixel_snap package https://pub.dev/packages/pixel_snap. However, since the current behaviour goes against what the developer is telling flutter to render and makes the widget look blurry, I think this should be considered a bug and fixed in the framework. If nothing else, there should be a way to set the physical pixel size of a border. 

<details>
<summary>Video: </summary>

https://user-images.githubusercontent.com/73116038/208555821-e79b7e48-0700-4de7-8fee-54ba4267672d.mp4



</details>

<details>
<summary>Code: </summary>

```
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Padding(
            padding: const EdgeInsets.only(top: 20.0),
            child: Container(
              width: 500,
              height: 200,
              decoration: BoxDecoration(
                border: Border.all(
                  color: Colors.black,
                ),
                color: Colors.grey,
              ),
            ),
          )
        ],
      ),
    );
  }
}
```

</details>

<details>
<summary>flutter doctor: </summary>

```
[✓] Flutter (Channel stable, 3.3.10, on LMDE 5 (elsie) 5.10.0-19-amd64, locale
    en_GB.UTF-8)
    • Flutter version 3.3.10 on channel stable at
      /home/henryr/Dev/SDK/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (4 days ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /home/henryr/Android/Sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at:
      /home/henryr/Dev/SDK/AndroidStudio/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor
      --android-licenses

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Debian clang version 11.0.1-2
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2021.3)
    • Android Studio at /home/henryr/Dev/SDK/AndroidStudio/android-studio
    • Flutter plugin version 71.0.3
    • Dart plugin version 213.7433
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • LMDE 5 (elsie) 5.10.0-19-amd64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 108.0.5359.98

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

```

</details>