我找不到用于使用Flutter / Dart创建页脚导航栏的任何文档。我知道“ crossAxisAlignment:CrossAxisAlignment.end ”可用于将内容拉到列的底部。但是,我不确定如何呈现粘贴在屏幕底部的网站页脚。flex和css网格中有多种解决方案,但不清楚该平台的实现方式。
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget siteLogo = new Container(
padding: const EdgeInsets.only(top: 100.0),
child: new Image.asset(
'images/logo.png',
width: 180.0,
height: 180.0,
),
);
Widget titleTextSection = new Container(
padding: const EdgeInsets.only(left: 80.0, right: 80.0, top: 30.0, bottom: 20.0),
child: new Text(
''' Welcome to The Site''',
textAlign: TextAlign.center,
style: new TextStyle(
fontSize: 35.0,
fontWeight: FontWeight.w500,
),
),
);
Widget …Run Code Online (Sandbox Code Playgroud)