Skip to content

Instantly share code, notes, and snippets.

@ScottS2017
ScottS2017 / main.dart
Created September 23, 2018 21:23
New default main.dart Live Template that can handle desktop embedding (IntelliJ Live Template)
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride;
void main() {
debugDefaultTargetPlatformOverride = TargetPlatform.android;
_setTargetPlatformForDesktop();
runApp($MyApp$());