@@ -117,8 +117,8 @@ class CardCollectionApp extends App {
|
||||
primarySwatch: colors.Blue,
|
||||
accentColor: colors.RedAccent[200]
|
||||
),
|
||||
child: new TaskDescription(
|
||||
label: 'Cards',
|
||||
child: new Title(
|
||||
title: 'Cards',
|
||||
child: new Scaffold(
|
||||
toolbar: new ToolBar(center: new Text('Swipe Away')),
|
||||
body: cardCollection
|
||||
|
||||
@@ -21,7 +21,7 @@ class EnsureVisibleApp extends App {
|
||||
const TextStyle(color: colors.white, fontSize: 18.0, fontWeight: bold);
|
||||
|
||||
static const TextStyle selectedCardLabelStyle =
|
||||
const TextStyle(color: white, fontSize: 24.0, fontWeight: bold);
|
||||
const TextStyle(color: colors.white, fontSize: 24.0, fontWeight: bold);
|
||||
|
||||
List<CardModel> cardModels;
|
||||
BlockViewportLayoutState layoutState = new BlockViewportLayoutState();
|
||||
@@ -89,8 +89,8 @@ class EnsureVisibleApp extends App {
|
||||
primarySwatch: colors.Blue,
|
||||
accentColor: colors.RedAccent[200]
|
||||
),
|
||||
child: new TaskDescription(
|
||||
label: 'Cards',
|
||||
child: new Title(
|
||||
title: 'Cards',
|
||||
child: new Scaffold(
|
||||
toolbar: new ToolBar(center: new Text('Tap a Card')),
|
||||
body: cardCollection
|
||||
|
||||
@@ -167,7 +167,7 @@ class OverlayGeometryApp extends App {
|
||||
primarySwatch: colors.Blue,
|
||||
accentColor: colors.RedAccent[200]
|
||||
),
|
||||
child: new TaskDescription(label: 'Cards', child: new Stack(layers))
|
||||
child: new Title(title: 'Cards', child: new Stack(layers))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,17 +3,8 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:sky/base/lerp.dart';
|
||||
import 'package:sky/painting/text_style.dart';
|
||||
import 'package:sky/theme/colors.dart';
|
||||
import 'package:sky/widgets/basic.dart';
|
||||
import 'package:sky/widgets/card.dart';
|
||||
import 'package:sky/widgets/icon.dart';
|
||||
import 'package:sky/widgets/scrollable.dart';
|
||||
import 'package:sky/widgets/scaffold.dart';
|
||||
import 'package:sky/widgets/theme.dart';
|
||||
import 'package:sky/widgets/tool_bar.dart';
|
||||
import 'package:sky/widgets/framework.dart';
|
||||
import 'package:sky/widgets/task_description.dart';
|
||||
import 'package:sky/widgets.dart';
|
||||
|
||||
class CardModel {
|
||||
CardModel(this.value, this.size, this.color);
|
||||
@@ -105,8 +96,8 @@ class PageableListApp extends App {
|
||||
primarySwatch: Blue,
|
||||
accentColor: RedAccent[200]
|
||||
),
|
||||
child: new TaskDescription(
|
||||
label: 'PageableList',
|
||||
child: new Title(
|
||||
title: 'PageableList',
|
||||
child: new Scaffold(
|
||||
toolbar: new Listener(
|
||||
onGestureTap: handleToolbarTap,
|
||||
|
||||
@@ -98,8 +98,8 @@ class ProgressIndicatorApp extends App {
|
||||
primarySwatch: colors.Blue,
|
||||
accentColor: colors.RedAccent[200]
|
||||
),
|
||||
child: new TaskDescription(
|
||||
label: 'Cards',
|
||||
child: new Title(
|
||||
title: 'Cards',
|
||||
child: new Scaffold(
|
||||
toolbar: new ToolBar(center: new Text('Progress Indicators')),
|
||||
body: body
|
||||
|
||||
@@ -122,8 +122,8 @@ class SectorApp extends App {
|
||||
Widget build() {
|
||||
return new Theme(
|
||||
data: new ThemeData.light(),
|
||||
child: new TaskDescription(
|
||||
label: 'Sector Layout',
|
||||
child: new Title(
|
||||
title: 'Sector Layout',
|
||||
child: new Scaffold(
|
||||
toolbar: new ToolBar(
|
||||
center: new Text('Sector Layout in a Widget Tree')
|
||||
|
||||
Reference in New Issue
Block a user