forked from firka/flutter
Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -78,7 +78,7 @@ class _MyAppState extends State<MyApp> {
|
||||
},
|
||||
// In this case this wraps a big open space in a GestureDetector in
|
||||
// order to show the context menu, but it could also wrap a single
|
||||
// wiget like an Image to give it a context menu.
|
||||
// widget like an Image to give it a context menu.
|
||||
child: ListView(
|
||||
children: <Widget>[
|
||||
Container(height: 20.0),
|
||||
|
||||
@@ -45,7 +45,7 @@ class _FilterChipExampleState extends State<FilterChipExample> {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Text('Choose an execise', style: textTheme.labelLarge),
|
||||
Text('Choose an exercise', style: textTheme.labelLarge),
|
||||
const SizedBox(height: 5.0),
|
||||
Wrap(
|
||||
spacing: 5.0,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// Builds an adaptive navigation widget layout. When the screen width is less than
|
||||
// 450, A [NavigationBar] will be displayed. Otherwise, a [NavigationRail] will be
|
||||
// displayed on the left side, and also a button to open the [NavigationDrawer].
|
||||
// All of these navigation widgets are built from an indentical list of data.
|
||||
// All of these navigation widgets are built from an identical list of data.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
NavigationRailLabelType labelType = NavigationRailLabelType.all;
|
||||
bool showLeading = false;
|
||||
bool showTrailing = false;
|
||||
double groupAligment = -1.0;
|
||||
double groupAlignment = -1.0;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -40,7 +40,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
children: <Widget>[
|
||||
NavigationRail(
|
||||
selectedIndex: _selectedIndex,
|
||||
groupAlignment: groupAligment,
|
||||
groupAlignment: groupAlignment,
|
||||
onDestinationSelected: (int index) {
|
||||
setState(() {
|
||||
_selectedIndex = index;
|
||||
@@ -118,7 +118,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
Text('Group alignment: $groupAligment'),
|
||||
Text('Group alignment: $groupAlignment'),
|
||||
const SizedBox(height: 10),
|
||||
OverflowBar(
|
||||
spacing: 10.0,
|
||||
@@ -126,7 +126,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = -1.0;
|
||||
groupAlignment = -1.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Top'),
|
||||
@@ -134,7 +134,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = 0.0;
|
||||
groupAlignment = 0.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Center'),
|
||||
@@ -142,7 +142,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = 1.0;
|
||||
groupAlignment = 1.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Bottom'),
|
||||
|
||||
@@ -32,7 +32,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
NavigationRailLabelType labelType = NavigationRailLabelType.all;
|
||||
bool showLeading = false;
|
||||
bool showTrailing = false;
|
||||
double groupAligment = -1.0;
|
||||
double groupAlignment = -1.0;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -42,7 +42,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
children: <Widget>[
|
||||
NavigationRail(
|
||||
selectedIndex: _selectedIndex,
|
||||
groupAlignment: groupAligment,
|
||||
groupAlignment: groupAlignment,
|
||||
onDestinationSelected: (int index) {
|
||||
setState(() {
|
||||
_selectedIndex = index;
|
||||
@@ -120,7 +120,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
Text('Group alignment: $groupAligment'),
|
||||
Text('Group alignment: $groupAlignment'),
|
||||
const SizedBox(height: 10),
|
||||
OverflowBar(
|
||||
spacing: 10.0,
|
||||
@@ -128,7 +128,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = -1.0;
|
||||
groupAlignment = -1.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Top'),
|
||||
@@ -136,7 +136,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = 0.0;
|
||||
groupAlignment = 0.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Center'),
|
||||
@@ -144,7 +144,7 @@ class _NavRailExampleState extends State<NavRailExample> {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
groupAligment = 1.0;
|
||||
groupAlignment = 1.0;
|
||||
});
|
||||
},
|
||||
child: const Text('Bottom'),
|
||||
|
||||
Reference in New Issue
Block a user