Some checks failed
Main Branch CI / Test Flutter beta on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter stable on ubuntu-latest (push) Has been skipped
Main Branch CI / Test Flutter beta on macos-latest (push) Has been cancelled
Main Branch CI / Test Flutter stable on macos-latest (push) Has been cancelled
19 lines
472 B
Dart
19 lines
472 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
class TextFieldPage extends StatelessWidget {
|
|
const TextFieldPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const CupertinoPageScaffold(
|
|
navigationBar: CupertinoNavigationBar(middle: Text('Text Field')),
|
|
child: Center(
|
|
child: Padding(
|
|
padding: EdgeInsets.all(16.0),
|
|
child: CupertinoTextField(placeholder: 'Enter text'),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|