TheCrether / simple_wol

A simple Flutter app that can wake devices with WOL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple_wol

A Flutter application where you can add WOL devices and wake them up over the LAN. This was done as part of an exercise for school.

What did I learn here?

  • how to use basic JSON operations in Dart
  • make a dialog in Flutter (AlertDialog)
  • build a form and add validation + input formatting (making everything uppercase or only valid characters from a RegEx) (AddForm)
  • manage basic state (StatefulWidget)
  • save data on the device with the shared_preferences module
  • use external modules in general (ex: wake_on_lan)
  • add an icon to a Flutter app with flutter_launcher_icons

What each file does

The entrypoint for the application. It manages the list state of the WOLItems and displays the AlertDialog used for adding devices.

This contains helper functions for saving and getting data from SharedPreferences.

This contains helper widgets (in this case only the AddForm widget). The AddForm widget is the content of the AlertDialog that gets displayed when trying to add a device.

Contains the WOLItem class that is used for saving the data of a device.

About

A simple Flutter app that can wake devices with WOL


Languages

Language:Dart 97.0%Language:Swift 2.1%Language:Kotlin 0.7%Language:Objective-C 0.2%