This commit is contained in:
2023-08-28 16:56:36 +08:00
parent 2cffe62963
commit 73f40a30e6
6 changed files with 83 additions and 2 deletions

38
lib/set_server.dart Normal file
View File

@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
class SetServerPage extends StatefulWidget {
const SetServerPage({Key? key}) : super(key: key);
static const String routeName = '/set_server';
@override
State<SetServerPage> createState() => _SetServerPageState();
}
class _SetServerPageState extends State<SetServerPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
children: [
const Text('EH Downloader server url:'),
const TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Server URL',
),
),
const Text('API path'),
TextField(
decoration: const InputDecoration(
border: OutlineInputBorder(),
labelText: 'API Path',
),
controller: TextEditingController(text: "/api"),
),
],
)),
);
}
}