Skip to content

Instantly share code, notes, and snippets.

@Lootwig
Created October 11, 2023 17:26
Show Gist options
  • Save Lootwig/b9b24118d1d5cea4bde8887194f87942 to your computer and use it in GitHub Desktop.
Save Lootwig/b9b24118d1d5cea4bde8887194f87942 to your computer and use it in GitHub Desktop.
tropical-performance-7429

tropical-performance-7429

Created with <3 with dartpad.dev.

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