mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update
This commit is contained in:
38
lib/set_server.dart
Normal file
38
lib/set_server.dart
Normal 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"),
|
||||
),
|
||||
],
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user