Я создаю настраиваемую панель приложений, в которой есть панель поиска и текстовый поиск рядом с панелью поиска
appBar: AppBar(
backgroundColor: Colors.white,
actions: <Widget>[
Row(
children: <Widget>[
Expanded(
child: Container(
margin: EdgeInsets.all(8.0),
decoration: BoxDecoration(
border: Border.all(color: Colors.grey, width: 1),
borderRadius: BorderRadius.all(Radius.circular(12.0)),
),
child: TextField(
autofocus: false,
onChanged: (value) {
....
},
keyboardType: TextInputType.text,
decoration: InputDecoration(
hintText: "Search",
prefixIcon: Icon(Icons.search),
border: InputBorder.none),
),
),
),
Text("search")
],
)
],
elevation: 0,
),
Ошибка
════════ Exception caught by rendering library ═════════════════════════════════
RenderFlex children have non-zero flex but incoming width constraints are unbounded.
The relevant error-causing widget was
Row
lib/ui/search_unit_owner.dart:49
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderFlex#fe581 relayoutBoundary=up13 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1687 pos 12: 'hasSize'