简体   繁体   中英

How can I open windows applications like notepad and paint using flutter windows desktop?

How can I open windows applications from my app, like notepad and paint using flutter windows?

Container(
                height: 60,
                width: 120,
                alignment: Alignment.center,
                decoration: BoxDecoration(
                    color: Colors.blue,
                    borderRadius: BorderRadius.circular(10)),
                child: RawMaterialButton(
                  child: Text(
                    "Notepad",
                    style: TextStyle(
                        color: Colors.black,
                        fontSize: 15,
                        fontWeight: FontWeight.w500),
                  ),
                  onPressed: () {},
                )),

You can use start or run function from Process class included in dart:io package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM