OpenMediacenterMobileFlutter/lib/login_screen.dart

24 lines
529 B
Dart
Raw Normal View History

2021-12-10 10:40:20 +00:00
import 'package:flutter/material.dart';
import 'logincontext.dart';
2021-12-10 10:40:20 +00:00
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"));
2021-12-10 10:40:20 +00:00
}
}