flexible

https://github.com/kyorohiro/hello_skyengine/tree/master/widget_flexible

//
// following code is checked in 2016/01/13
//
import 'package:flutter/widgets.dart';
import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'dart:ui' as sky;
import 'dart:math' as math;
import 'dart:async';
import 'package:flutter/material.dart';
void main() {
var felexibleTest = new Container(
decoration: new BoxDecoration(
backgroundColor: new Color.fromARGB(0xaa, 0xff, 0xaa, 0xaa)),
child: new Row([
//
// 2015 12/13 icon.jpeg is error
// new AssetImage(name:"assets/icon.jpeg",bundle:rootBundle, width: 25.0, height: 25.0),
new AssetImage(name:"assets/a.png",bundle:rootBundle, width: 25.0, height: 25.0),
//new NetworkImage(src: 'icon.jpeg', width: 25.0, height: 25.0),
new Flexible(child: new Text('flexible')),
new AssetImage(name:"assets/a.png",bundle:rootBundle, width: 25.0, height: 25.0)
//new NetworkImage(src: 'icon.jpeg', width: 25.0, height: 25.0),
]));
runApp(new Column([
felexibleTest,felexibleTest,felexibleTest,
felexibleTest,felexibleTest,felexibleTest,
felexibleTest,felexibleTest,felexibleTest,
felexibleTest,felexibleTest,felexibleTest
]));
}
#flutter.yaml
assets:
- assets/icon.jpeg
- assets/a.png