Page MenuHomec4science

loginpage_robots.dart
No OneTemporary

File Metadata

Created
Sat, May 18, 03:16

loginpage_robots.dart

import 'package:flutter/material.dart';
import 'package:student/Game.dart';
import 'package:flutter/foundation.dart';
import 'dart:convert';
import 'package:student/model/Cellulo.dart';
import 'package:student/model/Group.dart';
class RobotsLoginPage extends StatefulWidget {
RobotsLoginPage({Key key}) : super(key: key);
@override
_RobotsLoginPageState createState() => _RobotsLoginPageState();
}
class _RobotsLoginPageState extends State<RobotsLoginPage> {
TextEditingController controller1 = TextEditingController();
TextEditingController controller2 = TextEditingController();
TextEditingController controller3 = TextEditingController();
Widget nextButton() {
return InkWell(
onTap: () {
Navigator.push(
context, MaterialPageRoute(builder: (context) => Game()));
group.cellulox = cellulox;
group.celluloy = celluloy;
cellulox.setup();
},
child: Container(
width: MediaQuery.of(context).size.width,
padding: EdgeInsets.symmetric(vertical: 13),
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(5)),
boxShadow: <BoxShadow>[
BoxShadow(
color: Color(0xffdf8e33).withAlpha(100),
offset: Offset(2, 4),
blurRadius: 8,
spreadRadius: 2)
],
color: Colors.white),
child: Text(
'Lets go',
style: TextStyle(fontSize: 20, color: Color(0xfff7892b)),
),
),
);
}
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Login'),
),
backgroundColor: Colors.white,
body: Padding(
padding: EdgeInsets.all(30.0),
child: Column(children: <Widget>[
Container(
padding: EdgeInsets.all(8.0),
decoration: BoxDecoration(
border:
Border(bottom: BorderSide(color: Colors.grey[100]))),
child: TextField(
controller: controller1,
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Enter your robot code",
hintStyle: TextStyle(color: Colors.grey[400])),
),
),
SizedBox(
height: 100,
),
Container(
padding: EdgeInsets.all(8.0),
decoration: BoxDecoration(
border:
Border(bottom: BorderSide(color: Colors.grey[100]))),
child: TextField(
controller: controller3,
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Enter your Robot Code",
hintStyle: TextStyle(color: Colors.grey[400])),
),
),
SizedBox(
height: 100,
),
nextButton()
])));
}
}

Event Timeline