-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on MAC and Windows #18
Comments
TO get it to work i only had to make these changes. main_desktop.dart:
main.dart:
mainapp.dart:
|
Yeah, the target platform fuchsia was definitely going to be used when we
moved from running it on android to running it on zircon.
…On Thu, Aug 1, 2019 at 7:35 PM jow blew ***@***.***> wrote:
TO get it to work i only had to make these changes.
Because the main.dart is essentially the same, you can run this.
main_desktop.dart:
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'mainapp.dart';
void main() {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
runApp(MainApp());
}
main.dart:
//import 'dart:async';
import 'package:flutter/material.dart';
//import 'package:intl/intl.dart';
import 'mainapp.dart';
void main() => runApp(MainApp());
mainapp.dart:
import 'window_space.dart';
//import 'dart:async';
import 'package:flutter/material.dart';
//import 'package:intl/intl.dart';
import 'menu.dart';
import 'package:flutter/services.dart';
import 'widgets/system_overlay.dart';
import 'quick_settings.dart';
import 'widgets/toggle.dart';
import 'launcher_toggle.dart';
import 'status_tray.dart';
import 'app_toggle.dart';
import 'launcher.dart';
class MainApp extends StatelessWidget {
@OverRide
....
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEOTEHA4QT7ZYG2RXVHRJE3QCNXLZANCNFSM4IIYDW3Q>
.
|
You can create a pull request, but we are not focusing on desktop embedders, we are focusing on an actual Dahlia system. |
Could you either create a pull request and have it work on linux rather than macOS? |
@nmcain I dont have time as working on another project where we use go-flutter to make flutter apps that run on all desktops and web. https://github.com/winwisely99/main SO rather than me make a PR, you only need to follow the make file i made above. hover is the CLI in golang that does it all chat with team |
We have officially added desktop platform support as of now for Linux based builds, and on MacOS, windows and Web. Thank you! |
Can someone let me know if this is useful.
I was curious what the UX experience is to run it on a Desktop.
Its actually very useful, because you can run it in full screen, and just use the apps and forget about the real desktop behind it.
also its quick for working on the app because go-flutter has hot reload.
I only had to make minor mods to the main.dart file and add a main_desktop.dart file and break out the "MyApp" class to a new file called mainapp.dart, and get the new main.dart and main_desktop.dart to call it.
https://www.youtube.com/watch?v=epoNDPnGjU0&feature=youtu.be
Makefile:
The text was updated successfully, but these errors were encountered: