Commit 2398cd9a authored by Hans Muller's avatar Hans Muller Committed by GitHub

Remove extraneous gallery demo imports (#7002)

parent e3d05449
...@@ -146,8 +146,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -146,8 +146,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
value: dropdown1Value, value: dropdown1Value,
onChanged: (String newValue) { onChanged: (String newValue) {
setState(() { setState(() {
if (newValue != null) dropdown1Value = newValue;
dropdown1Value = newValue;
}); });
}, },
items: <String>[ items: <String>[
...@@ -172,8 +171,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> { ...@@ -172,8 +171,7 @@ class _ButtonsDemoState extends State<ButtonsDemo> {
value: dropdown2Value, value: dropdown2Value,
onChanged: (String newValue) { onChanged: (String newValue) {
setState(() { setState(() {
if (newValue != null) dropdown2Value = newValue;
dropdown2Value = newValue;
}); });
}, },
items: <String>['One', 'Two', 'Free', 'Four'].map((String value) { items: <String>['One', 'Two', 'Free', 'Four'].map((String value) {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class TravelDestination { class TravelDestination {
const TravelDestination({ this.assetName, this.title, this.description }); const TravelDestination({ this.assetName, this.title, this.description });
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
const double kColorItemHeight = 48.0; const double kColorItemHeight = 48.0;
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'full_screen_dialog_demo.dart'; import 'full_screen_dialog_demo.dart';
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
// This demo is based on // This demo is based on
// https://material.google.com/components/dialogs.html#dialogs-full-screen-dialogs // https://material.google.com/components/dialogs.html#dialogs-full-screen-dialogs
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
enum GridDemoTileStyle { enum GridDemoTileStyle {
imageOnly, imageOnly,
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
const String _text1 = const String _text1 =
"Snackbars provide lightweight feedback about an operation by " "Snackbars provide lightweight feedback about an operation by "
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class TextStyleItem extends StatelessWidget { class TextStyleItem extends StatelessWidget {
TextStyleItem({ Key key, this.name, this.style, this.text }) : super(key: key) { TextStyleItem({ Key key, this.name, this.style, this.text }) : super(key: key) {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'drawer.dart'; import 'drawer.dart';
import 'item.dart'; import 'item.dart';
......
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