Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat Item Widget Issue #39

Closed
talalmustafak opened this issue Oct 10, 2019 · 4 comments
Closed

Chat Item Widget Issue #39

talalmustafak opened this issue Oct 10, 2019 · 4 comments

Comments

@talalmustafak
Copy link

The chat item widget is showing errors after implementing the slide down gesture to collapse the conversation list.
The errors are

Incorrect use of Parentdatawidget.
Flexible widgets must be placed directly
inside Flex widgets.
Flexible (no depth, flex: 1, dirty has a
Flex ancestor, but there are other widgets
between them:

  • Decorated Box(bg: BoxDecoration(color:
    Color (Fafafa )
    Expanded(flex: 11
    These widgets cannot come between a
    Flexible and its Flex
    The ownership chain for the parent of the
    offending Flexible was:
    Chat qListWidget + Decorated Box
    Container
    Expanded
    Column
    Conversation Page - RepaintBoundary
    Indexed Semantics +
    Notification Listener<Keep Alive Notification

KeepAlive

@adityadroid
Copy link
Owner

inside Flex widgets.

Can you post your code?

@talalmustafak
Copy link
Author

lib.zip

@adityadroid
Copy link
Owner

lib.zip

Update your Conversationpage.dart class



class ConversationPage extends StatefulWidget {
  @override
  _ConversationPageState createState() => _ConversationPageState();
}

class _ConversationPageState extends State<ConversationPage> {

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
          appBar: ChatAppBar(), // Custom app bar for chat screen
          body: Stack(children: <Widget>[
            Column(
              children: <Widget>[
              ChatListWidget(),
                InputWidget()
              ],
            ),
          ]
    )
      )
    );
  }


}

@adityadroid
Copy link
Owner

Closing due to inactivity. Feel free to open it back again if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants