没有合适的资源?快使用搜索试试~ 我知道了~
首页flutter SingleChildScrollView的使用
SingleChildScrollView相当于安卓的ScrollView,SizedBox是一个能指定宽高的盒子,一般默认占据主轴空间 import 'package:flutter/material.dart'; class Demo1 extends StatelessWidget{ @override Widget build(BuildContext context) { // TODO: implement build return Scaffold( appBar: AppBar( elevation: 0.0,
资源详情
资源评论
资源推荐

flutter SingleChildScrollView的使用的使用
SingleChildScrollView相当于安卓的ScrollView,SizedBox是一个能指定宽高的盒子,一般默认占据主轴空间
import 'package:flutter/material.dart';
class Demo1 extends StatelessWidget{
@override
Widget build(BuildContext context) {
// TODO: implement build
return Scaffold(
appBar: AppBar(
elevation: 0.0,
backgroundColor: Colors.transparent,
title: Text('sdafas',style: TextStyle(fontSize: 14,color: Colors.red),),
),
//类似安卓中的ScrollView
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
//可以确定控制盒子大小的widget
SizedBox(height: 36,child:
Container(
decoration: BoxDecoration(
color: Colors.red
),
),),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),
Text('asdfdsaf'),



















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0