小编Abh*_*ith的帖子

非活动 InputConnection 上的 getSelectedText 颤动

我有一个奇怪的问题,当我尝试在文本字段中输入值时,当我尝试键入时键盘出现了当我尝试输入年龄、身高、体重键盘并在几秒钟内出现时,这是我收到的错误/警告,颤振医生没有问题,

W/IInputConnectionWrapper(23904): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(23904): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 8756): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 8756): endBatchEdit on inactive InputConnection
Run Code Online (Sandbox Code Playgroud)

代码和视图

class RegistrationScreenState extends State<RegistrationScreen> {

 TextEditingController mobile = TextEditingController();
  TextEditingController Username = TextEditingController();
  TextEditingController Place = TextEditingController();
  TextEditingController age = TextEditingController();
  TextEditingController height = TextEditingController();
  TextEditingController weight = TextEditingController();

  void initState() {
    getDetails();

  }

  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery
        .of(context)
        .size;
    return Scaffold(
      appBar: AppBar(
        title: Text("Registration", style: TextStyle(color: Colors.black)),
        backgroundColor: Colors.orange, …
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-layout

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

保持底部导航栏在每个屏幕上颤动

我有这个底部导航栏,带有中心停靠的浮动图标,底部栏存在,我可以浏览底部栏中的选项卡元素,但我需要显示固定到每个屏幕的底部栏,无论我打开什么屏幕,我都需要显示底栏导航

1.如何查看子页面中的底部栏示例,如果我转到主屏幕并且要单击主页中的某个项目并重定向下一页,则底部导航栏应显示在重定向的页面中

底栏导航

class BottomViewScreenState extends State<BottomViewScreen> {
  TabController tabController;

 static int _selectedTab = 0;
  final List<Widget> _children = [
    new HomeScreen(),
    new OfferScreen(),
    new HelpScreen(),
    new ProfileScreen(),
    new CartViewScreen(),
  ];

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      theme: ThemeData(
        primaryColor: Color(0xffFF5555),
      ),
      home: Scaffold(
        body: _children[_selectedTab], // new
        floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
        floatingActionButton: FloatingActionButton(
          onPressed: () {
            // new CartViewScreen();
            //onTabTapped(4);
            // CartViewScreen();
            Navigator.push(
              context,
              MaterialPageRoute(
                builder: (context) => CartViewScreen(),
              ),
            );
          },
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center, …
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-layout

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

带有 Agora Flutter 的视频通话接受屏幕

我正在尝试使用Agora构建一个视频通话应用程序,我需要在用户呼叫时显示像 WhatsApp 这样的接受屏幕,如果退出应用程序,我需要在用户呼叫时显示呼叫屏幕,我尝试了很多东西,但没有任何效果,我试图做我颤抖,但没有太多关于这方面的信息,请帮助我

android kotlin flutter flutter-dependencies agora.io

3
推荐指数
1
解决办法
2950
查看次数