Add macOS support (#23)

* Add macOS support

* Update README

* Update to v0.2.0

* Document breaking changes

* Delete widget tests
This commit is contained in:
Ben Hagen
2025-05-13 16:24:58 +02:00
committed by GitHub
parent c391cc5f26
commit abe519dae7
103 changed files with 3444 additions and 169 deletions
@@ -19,7 +19,7 @@ class _IdleViewState extends State<IdleView> {
@override
void initState() {
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
context.read<AppService>().getSavedIOSDeviceName().then((value) {
context.read<AppService>().getSavedDarwinDeviceName().then((value) {
controller.text = value;
controller.selection = TextSelection.collapsed(offset: value.length);
setState(() {
@@ -56,7 +56,7 @@ class _IdleViewState extends State<IdleView> {
return Center(
child: Column(
children: [
if (Platform.isIOS)
if (Platform.isIOS || Platform.isMacOS)
Padding(
padding: const EdgeInsets.only(bottom: 10.0),
child: TextFormField(