Closed
Description
hi
when I build with windows.
I can not get image.
- build
docker run \
--rm \
--mount type=bind,source=$(pwd),target=/app \
--mount type=bind,source=/tmp/hover/engine,target=/root/.cache/hover/engine \
--mount type=bind,source=/tmp/hover/cross-compile/cache,target=/cache \
--mount type=bind,source=/tmp/.pub-cache,target=/root/.pub-cache \
--env GOCACHE=/cache \
--env GOPROXY=${GOPROXY:-} \
--env GOPRIVATE=${GOPRIVATE:-} \
--env HOVER_DISABLE_INTERACTIONS=yes \
goflutter/hover:latest \
bash -c "
hover build windows &&
chown -R $(id -u):$(id -g) /app &&
chown -R $(id -u):$(id -g) /root/.cache/hover/engine &&
chown -R $(id -u):$(id -g) /cache &&
chown -R $(id -u):$(id -g) /root/.pub-cache"
- sample code
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Image.network("https://switch-box.net/wp-content/uploads/2012/11/free-soft-caesium-image-compression-01.jpg")
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
when I run with mac I can get image
but with windows, I get just a box.
Is this a bug?
Metadata
Metadata
Assignees
Labels
No labels