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

issue in messages.dart #5

Open
Techno-Innovations opened this issue Jul 13, 2021 · 0 comments
Open

issue in messages.dart #5

Techno-Innovations opened this issue Jul 13, 2021 · 0 comments

Comments

@Techno-Innovations
Copy link

*this is the error i get when i enter any chat

======== Exception caught by widgets library =======================================================
The following assertion was thrown building TextMessage(dirty, dependencies: [_LocalizationsScope-[GlobalKey#045b8], MediaQuery, _InheritedTheme]):
Cannot provide both a color and a decoration
To provide both, use "decoration: BoxDecoration(color: color)".
'package:flutter/src/widgets/container.dart':
Failed assertion: line 274 pos 15: 'color == null || decoration == null'

The relevant error-causing widget was:
TextMessage file:///E:/Chat-Messaging-App-Light-and-Dark-Theme-master/lib/screens/messages/components/message.dart:22:18
When the exception was thrown, this was the stack:
#2 new Container (package:flutter/src/widgets/container.dart:274:15)
#3 TextMessage.build (package:chat/screens/messages/components/text_message.dart:16:12)
#4 StatelessElement.build (package:flutter/src/widgets/framework.dart:4648:28)
#5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4574:15)
#6 Element.rebuild (package:flutter/src/widgets/framework.dart:4267:5)
...

======== Exception caught by rendering library =====================================================
The following assertion was thrown during layout:
A RenderFlex overflowed by 99684 pixels on the right.

The relevant error-causing widget was:
Row file:///E:/Chat-Messaging-App-Light-and-Dark-Theme-master/lib/screens/messages/components/message.dart:34:14
The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex#cdd14 relayoutBoundary=up6 OVERFLOWING
... parentData: offset=Offset(0.0, 20.0) (can use size)
... constraints: BoxConstraints(w=350.0, 0.0<=h<=Infinity)
... size: Size(350.0, 100000.0)
... direction: horizontal
... mainAxisAlignment: start
... mainAxisSize: max
... crossAxisAlignment: center
... textDirection: ltr
... verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤

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

0 participants