Skip to content

Instantly share code, notes, and snippets.

@jonahwilliams
Created June 27, 2023 17:00
Show Gist options
  • Save jonahwilliams/0a21a2b7b96c89d8d1d5d400396ef413 to your computer and use it in GitHub Desktop.
Save jonahwilliams/0a21a2b7b96c89d8d1d5d400396ef413 to your computer and use it in GitHub Desktop.
text wierdness
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
void main() =>
runApp(
MaterialApp(home: Scaffold(body: ListView(
children: [
Text('Hello, world!',
key: Key('title'),
),
Text('Back',
key: Key('title'),
),
Text('Forward',
key: Key('title'),
),
Text('Hello, world!',
key: Key('title'),
),
Text('Back',
key: Key('title'),
),
Text('Forward',
key: Key('title'),
),
Text('Hello, world!',
key: Key('title'),
),
Text('Back',
key: Key('title'),
),
Text('Forward',
key: Key('title'),
),
Text('Hello, world!',
key: Key('title'),
),
Text('Back',
key: Key('title'),
),
Text('Forward',
key: Key('title'),
),
for (var i = 0; i < 100; i++)
Container(height: 100, color: Colors.red)
]
)
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment