Files
eh_downloader_flutter/lib/set_server.dart
2023-08-28 16:56:36 +08:00

39 lines
998 B
Dart

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"),
),
],
)),
);
}
}