About box API (#4677)
This API is the front-end part of the work on showing licenses. Future patches will: * Provide an API for registering what licenses should be shown here, which will be used by this feature to shown licenses but could also be used by custom code for showing licenses (e.g. for people not using the Material widgets). * Actually populate this license API from all the licenses we currently use in the engine, in the framework, and from any pub packages that are used (directly or indirectly) by the application.
This commit is contained in:
@@ -52,7 +52,7 @@ class TypographyDemo extends StatelessWidget {
|
||||
new TextStyleItem(name: 'Title', style: textTheme.title, text: 'Medium 20sp'),
|
||||
new TextStyleItem(name: 'Subheading', style: textTheme.subhead, text: 'Regular 16sp'),
|
||||
new TextStyleItem(name: 'Body 2', style: textTheme.body2, text: 'Medium 14sp'),
|
||||
new TextStyleItem(name: 'Body 1', style: textTheme.body1, text: 'Reguluar 14sp'),
|
||||
new TextStyleItem(name: 'Body 1', style: textTheme.body1, text: 'Regular 14sp'),
|
||||
new TextStyleItem(name: 'Caption', style: textTheme.caption, text: 'Regular 12sp'),
|
||||
new TextStyleItem(name: 'Button', style: textTheme.button, text: 'MEDIUM (ALL CAPS) 14sp')
|
||||
];
|
||||
|
||||
@@ -94,6 +94,18 @@ class GalleryDrawer extends StatelessWidget {
|
||||
]
|
||||
)
|
||||
),
|
||||
new AboutDrawerItem(
|
||||
applicationVersion: '2016 Q2 Preview',
|
||||
applicationIcon: new AssetImage('packages/flutter_gallery_assets/appbar_background.jpg'),
|
||||
applicationLegalese: '© 2016 The Chromium Authors',
|
||||
aboutBoxChildren: <Widget>[
|
||||
new Padding(
|
||||
padding: const EdgeInsets.only(top: 24.0, bottom: 8.0),
|
||||
child: new Center(child: new CircularProgressIndicator())
|
||||
),
|
||||
new Text('Awaiting fix for issue 4512.', textAlign: TextAlign.center),
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user