Files
2024-11-12 14:56:39 +01:00

45 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
class TVShowDetailsSettingsBoxLocalPath extends StatelessWidget {
const TVShowDetailsSettingsBoxLocalPath({
super.key,
required this.localPath,
required this.localPathChanged,
});
final String localPath;
final Function(String localPath) localPathChanged;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(
left: 5.0,
right: 5.0,
top: 5.0,
bottom: 5.0,
),
child: Column(
children: [
const Text(
'Local Path',
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
TextFormField(
decoration: const InputDecoration(
border: OutlineInputBorder(),
labelText: 'Local Path',
),
initialValue: localPath,
onChanged: (text) {
localPathChanged(text);
}),
],
),
);
}
}