text.dart 625 Bytes
Newer Older
1 2 3 4 5 6 7
// 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';

class TextPage extends StatelessWidget {
8 9
  const TextPage({Key key}) : super(key: key);

10 11
  @override
  Widget build(BuildContext context) {
12 13
    return Material(
      child: Column(
14 15
        children: const <Widget>[
          SizedBox(
16 17
            width: 200,
            height: 100,
18
            child: TextField(
19 20
              key: Key('basic-textfield'),
            ),
21
          ),
22 23
        ],
      ),
24 25 26
    );
  }
}