void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Column homeThumb(String icon, String label) {
Color color = Theme.of(context).primaryColor;
return new Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
new Container(
margin: const EdgeInsets.all(8.0),
child: new Image.asset(icon, width: 32.0, height: 32.0),
),
new Container(
margin: const EdgeInsets.only(top: 8.0),
child: new Text(
label,
textAlign: TextAlign.center,
style: new TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w400,
color: color,
),
),
),
],
);
}
Widget homeIcon = new Container(
child: new Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
new Container(
margin: const EdgeInsets.only(
top: 40.0, left: 8.0, right: 8.0, bottom: 8.0),
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
homeThumb("images/icons/list.png", 'Claim Offers'),
homeThumb("images/icons/wallet.png", 'Wallet'),
homeThumb("images/icons/cart.png", 'Redeem Offers'),
],
)),
new Container(
margin: const EdgeInsets.all(8.0),
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
homeThumb("images/icons/user.png", 'Account'),
homeThumb("images/icons/badge.png", 'Merchants'),
homeThumb("images/icons/history.png", 'Shopping History'),
],
)),
new Container(
margin: const EdgeInsets.all(8.0),
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
homeThumb("images/icons/bell.png", 'Notifications'),
homeThumb("images/icons/plane.png", 'Service Request'),
homeThumb("images/icons/share.png", 'Share & Earn'),
],
)),
]));
Widget grid = new GridView.count(
crossAxisCount: 4,
children: new List.generate(16, (index) {
return new GridTile(
child: new Card(
color: Colors.blue.shade200,
child: new Center(
child: new Text('tile $index'),
)
),
);
}),
);
return new MaterialApp(
title: 'Minkville',
home: new Scaffold(
appBar: new AppBar(
title: new Text('Minkville'),
),
body: new ListView(
children: [
new Image.asset(
'images/slider/img_s1.jpg',
width: 600.0,
height: 180.0,
fit: BoxFit.fill,
),
homeIcon,
grid
],
),
),
);
}
}
при отладке поступают следующие журналы
I/flutter (16594): было выдано еще одно исключение: ' package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Неудачное утверждение: строка 441 поз. 12: 'child.hasSize': неверно.
I/flutter (16594): Было выдано другое исключение: RenderBox не был выложено: RenderRepaintBoundary#199e9 RelayoutBoundary=up3 НУЖНА КРАСКА
Widget grid = new GridView.count( crossAxisCount: 4, children: new List.generate(16, (index) { return new GridTile( child: new Card( color: Colors.blue.shade200, child: new Center( child: new Text('tile $index'), ) ), ); }), );
return new MaterialApp( title: 'Minkville', home: new Scaffold( appBar: new AppBar( title: new Text('Minkville'), ), body: new ListView( children: [ new Image.asset( 'images/slider/img_s1.jpg', width: 600.0, height: 180.0, fit: BoxFit.fill, ), homeIcon, grid
], ), ), ); } } [/code]
при отладке поступают следующие журналы
I/flutter (16594): было выдано еще одно исключение: ' package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Неудачное утверждение: строка 441 поз. 12: 'child.hasSize': неверно. I/flutter (16594): Было выдано другое исключение: RenderBox не был выложено: RenderRepaintBoundary#199e9 RelayoutBoundary=up3 НУЖНА КРАСКА
I am trying to set up the Hello World example from the FastDDS tutorial here:
When I run the publisher and subscriber (separate terminals), they can't find each other. I never get the Publisher matched and Subscriber matched lines.
В настоящее время я тестирую интеграцию openstreetmap с помощью syncfusion
Просматриваю их документацию =>
Я попробовал запустить этот код:
@using Syncfusion.Blazor.Maps
Я работаю над плагином React Native со структурой проекта, которая включает тестовое приложение в каталоге demos для тестирования функций плагина.
Моя проблема возникает при попытке обработать событие, исходящее из родная сторона Android. Несмотря...
Я тестирую свой код Java в Eclipse, и все в порядке. Но через некоторое время мой код больше не работает. Я должен закрыть затмение и снова открыть его. Чем я могу продолжать работать, пока это не перестанет работать снова. Это происходит, как...