diff --git a/mdc_100_series/ios/Flutter/flutter_export_environment.sh b/mdc_100_series/ios/Flutter/flutter_export_environment.sh new file mode 100644 index 0000000000..6ce7c6dd99 --- /dev/null +++ b/mdc_100_series/ios/Flutter/flutter_export_environment.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=C:\flutter" +export "FLUTTER_APPLICATION_PATH=C:\Users\mingenbache\AndroidStudioProjects\Material\material-components-flutter-codelabs\mdc_100_series" +export "FLUTTER_TARGET=lib\main.dart" +export "FLUTTER_BUILD_DIR=build" +export "SYMROOT=${SOURCE_ROOT}/../build\ios" +export "OTHER_LDFLAGS=$(inherited) -framework Flutter" +export "FLUTTER_FRAMEWORK_DIR=C:\flutter\bin\cache\artifacts\engine\ios" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" diff --git a/mdc_100_series/lib/home.dart b/mdc_100_series/lib/home.dart index f2d637ec35..7db920fa55 100644 --- a/mdc_100_series/lib/home.dart +++ b/mdc_100_series/lib/home.dart @@ -23,11 +23,41 @@ class HomePage extends StatelessWidget { // TODO: Pass Category variable to AsymmetricView (104) return Scaffold( // TODO: Add app bar (102) + appBar: AppBar( + title: Text('SHRINE'), + leading: IconButton( + icon: Icon( + Icons.menu, + semanticLabel: 'Menu', + ), + onPressed: () { + print('Menu button'); + }, + ), + actions: [ + IconButton( + icon: Icon( + Icons.search, + semanticLabel: 'search', + ), + onPressed: () { + print('Search button'); + }, + ), + IconButton( + icon: Icon( + Icons.tune, + semanticLabel: 'filter', + ), + onPressed: () => print('Filter button'), + ), + ], + ), // TODO: Add a grid view (102) body: Center( child: Text('You did it!'), ), - // TODO: Set resizeToAvoidBottomInset (101) + resizeToAvoidBottomInset: false,// TODO: Set resizeToAvoidBottomInset (101) ); } } diff --git a/mdc_100_series/lib/login.dart b/mdc_100_series/lib/login.dart index 4b104c9065..1fa1d2df4d 100644 --- a/mdc_100_series/lib/login.dart +++ b/mdc_100_series/lib/login.dart @@ -20,6 +20,9 @@ class LoginPage extends StatefulWidget { } class _LoginPageState extends State { + + final _usernameController = TextEditingController(); + final _passwordController = TextEditingController(); // TODO: Add text editing controllers (101) @override Widget build(BuildContext context) { @@ -37,6 +40,41 @@ class _LoginPageState extends State { ], ), SizedBox(height: 120.0), + TextField( + controller: _usernameController, + decoration: InputDecoration( + filled: true, + labelText: 'Username', + ), + ), + SizedBox(height: 12.0), + + TextField( + controller: _passwordController, + decoration: InputDecoration( + filled: true, + labelText: 'Password', + ), + obscureText: true, + ), + ButtonBar( + children: [ + FlatButton( + child: Text('CANCEL'), + onPressed: () { + _usernameController.clear(); + _passwordController.clear(); + } + ), + RaisedButton( + child: Text('NEXT'), + onPressed: () { + Navigator.pop(context); + } + ) + ], + ) + // TODO: Wrap Username with AccentColorOverride (103) // TODO: Remove filled: true values (103) // TODO: Wrap Password with AccentColorOverride (103) @@ -49,4 +87,5 @@ class _LoginPageState extends State { } } + // TODO: Add AccentColorOverride (103) diff --git a/mdc_100_series/pubspec.lock b/mdc_100_series/pubspec.lock new file mode 100644 index 0000000000..2cda047a1d --- /dev/null +++ b/mdc_100_series/pubspec.lock @@ -0,0 +1,202 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.13" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.0" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.3" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.12" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.4" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + image: + dependency: transitive + description: + name: image + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.12" + intl: + dependency: "direct main" + description: + name: intl + url: "https://pub.dartlang.org" + source: hosted + version: "0.15.8" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.6" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.8" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.4" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.0" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.3" + shrine_images: + dependency: "direct main" + description: + name: shrine_images + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.15" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "3.6.1" +sdks: + dart: ">=2.6.0 <3.0.0"