小编Cod*_*yal的帖子

Android connect to VPN Server (IPSec) with PSK and User/Pass

I want to connect to IPSec VPN Server with PSK and User/Pass, but I also want to make it able to run in lower Android too ( SDK version >= 20 )

I know Google added Ikev2VpnProfile and VPNManager in Android R, but I want the same functionality in lower Android like other apps on Play Store do

I'm using VpnService.Builder to connect to a server its working too this but I dunno how I can put up configs to …

java vpn android ipsec kotlin

5
推荐指数
0
解决办法
1256
查看次数

Flutter - 删除 Slider 中的默认边距

我想知道如何删除默认边距 Flutter Slider

当前输出是这样的,Slider的默认margin清晰可见

在此处输入图片说明

这是我的代码::

                    Positioned(
                      child: Align(
                        alignment: Alignment.bottomLeft,
                        child: SliderTheme(
                            data: SliderTheme.of(context).copyWith(
                              trackHeight: 2.0,
                              thumbColor: Colors.transparent,
                              thumbShape: RoundSliderThumbShape(enabledThumbRadius: 0.0),
                            ),
                            child: Container(
                                width: 380.0,
                                height: 20.0,
                                padding: EdgeInsets.all(0.0),
                                decoration: BoxDecoration(
                                  border: Border.all(color: Colors.blueAccent)
                                ),
                                child: Slider(
                                  value: 50,
                                  min: 1,
                                  max: 100,
                                  divisions: 100,
                                  activeColor: colors.primaryRed,
                                  inactiveColor: Colors.white,
                                  onChanged: (double newValue) {
                                    print(newValue);
                                  },
                                )
                            )
                        ),
                      ),
                    )
Run Code Online (Sandbox Code Playgroud)

flutter

4
推荐指数
2
解决办法
960
查看次数

标签 统计

android ×1

flutter ×1

ipsec ×1

java ×1

kotlin ×1

vpn ×1