Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 911 Bytes

startup_task_configuration.md

File metadata and controls

28 lines (22 loc) · 911 Bytes

Startup Task configuration

Use the startup_task:parameters field to pass the app values (args) on startup or user log-in:

msix_config:
  display_name: Flutter App
  startup_task: # <-- Startup Task
    task_id: my_flutter_app # optional (default: derived from app name)
    enabled: true # optional (default: true)
    parameters: autostart some_value # optional (default: null)
  msix_version: 1.0.3.0
void main(List<String> args) { // args: ['autostart', 'some_value']
  runApp(MyApp(args));
}

class MyApp extends StatelessWidget {
  final List<String> args;
  const MyApp(this.args, {super.key});

  //args...

StartupTasks Documentation Extension Documentation