24 lines
529 B
Dart
24 lines
529 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'logincontext.dart';
|
|
|
|
class LoginScreen extends StatefulWidget {
|
|
const LoginScreen({Key? key, this.onLogin}) : super(key: key);
|
|
|
|
final onLogin;
|
|
|
|
@override
|
|
_LoginScreenState createState() => _LoginScreenState();
|
|
}
|
|
|
|
class _LoginScreenState extends State<LoginScreen> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ElevatedButton(
|
|
onPressed: () {
|
|
LoginContext.of(context).onLoggin(true);
|
|
},
|
|
child: Text("klick meee"));
|
|
}
|
|
}
|