Commit 09cf84d9 authored by Adam Barth's avatar Adam Barth

Move RenderTogglable to material.dart

Fixes #219
parent 77cf420a
......@@ -54,6 +54,7 @@ export 'src/material/theme_data.dart';
export 'src/material/time_picker.dart';
export 'src/material/time_picker_dialog.dart';
export 'src/material/title.dart';
export 'src/material/toggleable.dart';
export 'src/material/tool_bar.dart';
export 'src/material/typography.dart';
......
......@@ -27,7 +27,6 @@ export 'src/rendering/proxy_box.dart';
export 'src/rendering/shifted_box.dart';
export 'src/rendering/stack.dart';
export 'src/rendering/statistics_box.dart';
export 'src/rendering/toggleable.dart';
export 'src/rendering/view.dart';
export 'src/rendering/viewport.dart';
......
......@@ -9,6 +9,7 @@ import 'package:flutter/widgets.dart';
import 'colors.dart';
import 'theme.dart';
import 'toggleable.dart';
const double _kMidpoint = 0.5;
const double _kEdgeSize = 18.0;
......
......@@ -12,6 +12,7 @@ import 'package:flutter/widgets.dart';
import 'radial_reaction.dart';
import 'shadows.dart';
import 'theme.dart';
import 'toggleable.dart';
const Color _kThumbOffColor = const Color(0xFFFAFAFA);
const Color _kTrackOffColor = const Color(0x42000000);
......
......@@ -4,13 +4,7 @@
import 'package:flutter/animation.dart';
import 'package:flutter/gestures.dart';
import 'binding.dart';
import 'box.dart';
import 'object.dart';
import 'proxy_box.dart';
typedef void ValueChanged<T>(T value);
import 'package:flutter/rendering.dart';
const Duration _kToggleDuration = const Duration(milliseconds: 200);
......
......@@ -14,3 +14,5 @@ export 'dart:ui' show
Size,
TransferMode,
VoidCallback;
typedef void ValueChanged<T>(T value);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment