Move RenderTogglable to material.dart

Fixes #219
This commit is contained in:
Adam Barth 2015-11-25 23:15:17 -08:00
parent 77cf420aab
commit 09cf84d9b6
6 changed files with 6 additions and 8 deletions

View File

@ -54,6 +54,7 @@ export 'src/material/theme_data.dart';
export 'src/material/time_picker.dart'; export 'src/material/time_picker.dart';
export 'src/material/time_picker_dialog.dart'; export 'src/material/time_picker_dialog.dart';
export 'src/material/title.dart'; export 'src/material/title.dart';
export 'src/material/toggleable.dart';
export 'src/material/tool_bar.dart'; export 'src/material/tool_bar.dart';
export 'src/material/typography.dart'; export 'src/material/typography.dart';

View File

@ -27,7 +27,6 @@ export 'src/rendering/proxy_box.dart';
export 'src/rendering/shifted_box.dart'; export 'src/rendering/shifted_box.dart';
export 'src/rendering/stack.dart'; export 'src/rendering/stack.dart';
export 'src/rendering/statistics_box.dart'; export 'src/rendering/statistics_box.dart';
export 'src/rendering/toggleable.dart';
export 'src/rendering/view.dart'; export 'src/rendering/view.dart';
export 'src/rendering/viewport.dart'; export 'src/rendering/viewport.dart';

View File

@ -9,6 +9,7 @@ import 'package:flutter/widgets.dart';
import 'colors.dart'; import 'colors.dart';
import 'theme.dart'; import 'theme.dart';
import 'toggleable.dart';
const double _kMidpoint = 0.5; const double _kMidpoint = 0.5;
const double _kEdgeSize = 18.0; const double _kEdgeSize = 18.0;

View File

@ -12,6 +12,7 @@ import 'package:flutter/widgets.dart';
import 'radial_reaction.dart'; import 'radial_reaction.dart';
import 'shadows.dart'; import 'shadows.dart';
import 'theme.dart'; import 'theme.dart';
import 'toggleable.dart';
const Color _kThumbOffColor = const Color(0xFFFAFAFA); const Color _kThumbOffColor = const Color(0xFFFAFAFA);
const Color _kTrackOffColor = const Color(0x42000000); const Color _kTrackOffColor = const Color(0x42000000);

View File

@ -4,13 +4,7 @@
import 'package:flutter/animation.dart'; import 'package:flutter/animation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
import 'binding.dart';
import 'box.dart';
import 'object.dart';
import 'proxy_box.dart';
typedef void ValueChanged<T>(T value);
const Duration _kToggleDuration = const Duration(milliseconds: 200); const Duration _kToggleDuration = const Duration(milliseconds: 200);

View File

@ -14,3 +14,5 @@ export 'dart:ui' show
Size, Size,
TransferMode, TransferMode,
VoidCallback; VoidCallback;
typedef void ValueChanged<T>(T value);