gecko/lib/screens/template_screen.dart

44 lines
1.4 KiB
Dart
Raw Normal View History

2021-02-27 20:29:35 +01:00
import 'package:flutter/services.dart';
2021-11-08 23:12:25 +01:00
import 'package:gecko/globals.dart';
2021-02-27 20:29:35 +01:00
import 'package:flutter/material.dart';
// import 'package:gecko/models/home.dart';
// import 'package:provider/provider.dart';
// ignore: must_be_immutable
class TemplateScreen extends StatelessWidget {
TextEditingController tplController = TextEditingController();
2021-11-14 19:21:20 +01:00
TemplateScreen({Key key}) : super(key: key);
2021-02-27 20:29:35 +01:00
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
// HomeProvider _homeProvider = Provider.of<HomeProvider>(context);
return Scaffold(
appBar: AppBar(
2021-11-15 04:16:25 +01:00
toolbarHeight: 60 * ratio,
2021-11-14 19:21:20 +01:00
title: const SizedBox(
2021-11-15 04:16:25 +01:00
height: 22,
child: Text('Template screen'),
)),
2021-02-27 20:29:35 +01:00
body: SafeArea(
child: Column(children: <Widget>[
2021-11-14 19:21:20 +01:00
const SizedBox(height: 20),
2021-02-27 20:29:35 +01:00
TextField(
enabled: true,
controller: tplController,
maxLines: 1,
textAlign: TextAlign.center,
2021-11-14 19:21:20 +01:00
decoration: const InputDecoration(
2021-02-27 20:29:35 +01:00
contentPadding: EdgeInsets.all(15.0),
),
2021-11-14 19:21:20 +01:00
style: const TextStyle(
2021-02-27 20:29:35 +01:00
fontSize: 22.0,
color: Colors.black,
fontWeight: FontWeight.w400)),
2021-11-14 19:21:20 +01:00
const SizedBox(height: 20),
2021-02-27 20:29:35 +01:00
]),
));
}
}