博客
关于我
Card
阅读量:254 次
发布时间:2019-03-01

本文共 1699 字,大约阅读时间需要 5 分钟。

/// Flutter code sample for Card// This sample shows creation of a [Card] widget that shows album information// and two actions.import 'package:flutter/material.dart';void main() => runApp(const MyApp());/// This is the main application widget.class MyApp extends StatelessWidget {  const MyApp({Key? key}) : super(key: key);  static const String _title = 'Flutter Code Sample';  @override  Widget build(BuildContext context) {    return MaterialApp(      title: _title,      home: Scaffold(        appBar: AppBar(title: const Text(_title)),        body: const MyStatelessWidget(),      ),    );  }}/// This is the stateless widget that the main application instantiates.class MyStatelessWidget extends StatelessWidget {  const MyStatelessWidget({Key? key}) : super(key: key);  @override  Widget build(BuildContext context) {    return Center(      child: Card(        child: Column(          mainAxisSize: MainAxisSize.min,          children: 
[ const ListTile( leading: Icon(Icons.album), title: Text('The Enchanted Nightingale'), subtitle: Text('Music by Julie Gable. Lyrics by Sidney Stein.'), ), Row( mainAxisAlignment: MainAxisAlignment.end, children:
[ TextButton( child: const Text('BUY TICKETS'), onPressed: () {/* ... */}, ), const SizedBox(width: 8), TextButton( child: const Text('LISTEN'), onPressed: () {/* ... */}, ), const SizedBox(width: 8), ], ), ], ), ), ); }}

 

转载地址:http://eakx.baihongyu.com/

你可能感兴趣的文章
MySQL InnoDB 三大文件日志,看完秒懂
查看>>
Mysql InnoDB 数据更新导致锁表
查看>>
Mysql Innodb 锁机制
查看>>
MySQL InnoDB中意向锁的作用及原理探
查看>>
MySQL InnoDB事务隔离级别与锁机制深入解析
查看>>
Mysql InnoDB存储引擎 —— 数据页
查看>>
Mysql InnoDB存储引擎中的checkpoint技术
查看>>
Mysql InnoDB存储引擎中缓冲池Buffer Pool、Redo Log、Bin Log、Undo Log、Channge Buffer
查看>>
MySQL InnoDB引擎的锁机制详解
查看>>
Mysql INNODB引擎行锁的3种算法 Record Lock Next-Key Lock Grap Lock
查看>>
mysql InnoDB数据存储引擎 的B+树索引原理
查看>>
mysql innodb通过使用mvcc来实现可重复读
查看>>
mysql insert update 同时执行_MySQL进阶三板斧(三)看清“触发器 (Trigger)”的真实面目...
查看>>
mysql interval显示条件值_MySQL INTERVAL关键字可以使用哪些不同的单位值?
查看>>
Mysql join原理
查看>>
MySQL Join算法与调优白皮书(二)
查看>>
Mysql order by与limit混用陷阱
查看>>
Mysql order by与limit混用陷阱
查看>>
mysql order by多个字段排序
查看>>
MySQL Order By实现原理分析和Filesort优化
查看>>