Created with <3 with dartpad.dev.
Created
October 11, 2023 17:26
-
-
Save Lootwig/b9b24118d1d5cea4bde8887194f87942 to your computer and use it in GitHub Desktop.
tropical-performance-7429
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(useMaterial3: true), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Padding( | |
// moving this padding INTO the listview gets rid of the bug | |
padding: const EdgeInsets.all(24), | |
child: ListView( | |
children: [ | |
DecoratedBox( | |
decoration: BoxDecoration( | |
border: Border.all( | |
color: Colors.amber, | |
width: 4, | |
strokeAlign: BorderSide.strokeAlignOutside, | |
), | |
), | |
child: const Text( | |
'Scroll this screen, observe horizontal borders disappearing during overscroll', | |
), | |
), | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment