- 
修改你的渠道的变量为
static const String channel = String.fromEnvironment('CHANNEL',defaultValue: "official");
 - 
编译的时候使用
CHANNEL带上参数--dart-defineflutter build apk --release --dart-define=CHANNEL=xiaomi
 
            目前尚无回复
        
    
    修改你的渠道的变量为
static const String channel = String.fromEnvironment('CHANNEL',defaultValue: "official");
编译的时候使用 CHANNEL 带上参数 --dart-define
flutter build apk --release --dart-define=CHANNEL=xiaomi
♥ 简单教程,简单编程 - IT 入门首选站
Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.