mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 03:01:27 +03:00
refactor
This commit is contained in:
@@ -18,6 +18,7 @@ class _HomePageState extends State<HomePage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ffi = Provider.of<FfiModel>(context);
|
||||
idController.text = ffi.getId();
|
||||
|
||||
// This method is rerun every time setState is called
|
||||
return Scaffold(
|
||||
@@ -43,7 +44,6 @@ class _HomePageState extends State<HomePage> {
|
||||
}
|
||||
|
||||
Widget getSearchBarUI() {
|
||||
var id = ffi.getId();
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0),
|
||||
child: Container(
|
||||
@@ -66,7 +66,6 @@ class _HomePageState extends State<HomePage> {
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(left: 16, right: 16),
|
||||
child: TextFormField(
|
||||
initialValue: id,
|
||||
style: TextStyle(
|
||||
fontFamily: 'WorkSans',
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
Reference in New Issue
Block a user