Skip to content

Running on MAC and Windows #18

@joeblew99

Description

@joeblew99

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

  • its funny how the Text Editor gets a bit confused when i try to select text.

Makefile:

# https://github.com/dahlia-os/pangolin-desktop

# The main dev
# [email protected]

# wow it works on Mobiles

LIB_NAME=pangolin-desktop
LIB=github.com/dahlia-os/$(LIB_NAME)
LIB_BRANCH=master
LIB_FSPATH=$(GOPATH)/src/$(LIB)

print:
	@echo $(LIB_NAME)
	@echo $(LIB)
	@echo $(LIB_BRANCH)
	@echo $(LIB_FSPATH)

dep:
	# git clone
	mkdir -p $(LIB_FSPATH)
	cd $(LIB_FSPATH) && cd .. && rm -rf $(NAME) && git clone https://$(LIB).git
	cd $(LIB_FSPATH) && git checkout $(LIB_BRANCH)
dep-clean:
	rm -rf $(LIB_FSPATH)
code:
	code $(LIB_FSPATH)
flu-dep:
	cd $(LIB_FSPATH) && flutter packages get
hov-dep:
	go get -u github.com/go-flutter-desktop/hover
	go get -u github.com/go-flutter-desktop/go-flutter

mob-run:
	cd $(LIB_FSPATH) && flutter run -d all
desk-init:
	# need to manually fix main.dart first DONE
	cd $(LIB_FSPATH) && hover init $(LIB)
desk-init-clean:
	rm -rf $(LIB_FSPATH)/desktop
desk-buildrun:
	cd $(LIB_FSPATH) && hover build
	open $(LIB_FSPATH)/desktop/build/outputs/darwin/Pangolin
desk-run:
	cd $(LIB_FSPATH) && hover run



Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions