Add SetRequestedOrientation to Activity service

Fixes #743
This commit is contained in:
Adam Barth
2015-08-21 11:27:17 -07:00
parent e95aee2715
commit 51c7194075
19 changed files with 49 additions and 101 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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))
)
);
}

View File

@@ -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,

View File

@@ -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

View File

@@ -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')