瀏覽代碼

removi files viejos/no necesarios

Oniel Mendez 4 年之前
父節點
當前提交
e12131a234

+ 0
- 26
Carlos/about_page.dart 查看文件

@@ -1,26 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/localization/language_constants.dart';
3
-
4
-class AboutPage extends StatefulWidget {
5
-  AboutPage({Key key}) : super(key: key);
6
-
7
-  @override
8
-  _AboutPageState createState() => _AboutPageState();
9
-}
10
-
11
-class _AboutPageState extends State<AboutPage> {
12
-  @override
13
-  Widget build(BuildContext context) {
14
-    return Scaffold(
15
-      appBar: AppBar(
16
-        title: Text(getTranslated(context, 'about_us')),
17
-      ),
18
-      body: Container(
19
-        padding: EdgeInsets.all(20),
20
-        child: Center(
21
-          child: Text(getTranslated(context, 'about')),
22
-        ),
23
-      ),
24
-    );
25
-  }
26
-}

+ 0
- 21
Carlos/custom_router.dart 查看文件

@@ -1,21 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/pages/about_page.dart';
3
-import 'package:userstory2translate/pages/home_page.dart';
4
-import 'package:userstory2translate/pages/not_found_page.dart';
5
-import 'package:userstory2translate/pages/settings_page.dart';
6
-import 'package:userstory2translate/router/route_constants.dart';
7
-
8
-class CustomRouter {
9
-  static Route<dynamic> generatedRoute(RouteSettings settings) {
10
-    switch (settings.name) {
11
-      case homeRoute:
12
-        return MaterialPageRoute(builder: (_) => HomePage());
13
-      case aboutRoute:
14
-        return MaterialPageRoute(builder: (_) => AboutPage());
15
-      case settingsRoute:
16
-        return MaterialPageRoute(builder: (_) => SettingsPage());
17
-      default:
18
-        return MaterialPageRoute(builder: (_) => NotFoundPage());
19
-    }
20
-  }
21
-}

+ 0
- 15
Carlos/en.json 查看文件

@@ -1,15 +0,0 @@
1
-{
2
-  "home_page": "Home Page",
3
-  "personal_information": "Personal Information",
4
-  "name": "Name",
5
-  "name_hint": "Enter your name",
6
-  "email": "Email",
7
-  "email_hint": "Enter your email",
8
-  "date_of_birth": "Date of Birth",
9
-  "required_field": "Required Field",
10
-  "submit_info": "Submit Info",
11
-  "about_us": "About Us",
12
-  "settings": "Settings",
13
-  "change_language": "Change Language",
14
-  "about": "This user story translate for our FastMed app in CCOM4030."
15
-}

+ 0
- 15
Carlos/es.json 查看文件

@@ -1,15 +0,0 @@
1
-{
2
-  "home_page": "Pagina Inicio",
3
-  "personal_information": "Informacion Personal",
4
-  "name": "Nombre",
5
-  "name_hint": "Entra tu nombre",
6
-  "email": "Correo electronico",
7
-  "email_hint": "Entra tu correo electronico",
8
-  "date_of_birth": "Fecha de nacimiento",
9
-  "required_field": "Campo requerido",
10
-  "submit_info": "Somete informacion",
11
-  "about_us": "Acerca de nosotros",
12
-  "settings": "Configuracion",
13
-  "change_language": "Cambia el lenguaje",
14
-  "about": "Este user story traduce para nuestro FastMed app en CCOM4030."
15
-}

+ 0
- 131
Carlos/gps_fastmed.dart 查看文件

@@ -1,131 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:url_launcher/url_launcher.dart';
3
-
4
-
5
-void main() {
6
-  runApp(MyApp());
7
-}
8
-
9
-class MyApp extends StatelessWidget {
10
-  // This widget is the root of your application.
11
-  @override
12
-  Widget build(BuildContext context) {
13
-    return MaterialApp(
14
-      title: 'Flutter Demo',
15
-      theme: ThemeData(
16
-        // This is the theme of your application.
17
-        //
18
-        // Try running your application with "flutter run". You'll see the
19
-        // application has a blue toolbar. Then, without quitting the app, try
20
-        // changing the primarySwatch below to Colors.green and then invoke
21
-        // "hot reload" (press "r" in the console where you ran "flutter run",
22
-        // or simply save your changes to "hot reload" in a Flutter IDE).
23
-        // Notice that the counter didn't reset back to zero; the application
24
-        // is not restarted.
25
-        primarySwatch: Colors.blue,
26
-      ),
27
-      home: MyHomePage(title: 'Flutter Demo Home Page'),
28
-    );
29
-  }
30
-}
31
-
32
-class MyHomePage extends StatefulWidget {
33
-  MyHomePage({Key key, this.title}) : super(key: key);
34
-
35
-  // This widget is the home page of your application. It is stateful, meaning
36
-  // that it has a State object (defined below) that contains fields that affect
37
-  // how it looks.
38
-
39
-  // This class is the configuration for the state. It holds the values (in this
40
-  // case the title) provided by the parent (in this case the App widget) and
41
-  // used by the build method of the State. Fields in a Widget subclass are
42
-  // always marked "final".
43
-
44
-  final String title;
45
-
46
-  @override
47
-  _MyHomePageState createState() => _MyHomePageState();
48
-}
49
-
50
-class _MyHomePageState extends State<MyHomePage> {
51
-  int _counter = 0;
52
-
53
-  void _incrementCounter() async {
54
-    setState(() async {
55
-      String destinationLatitude = "18.39007092764153";
56
-      String destinationLongitude = "-65.976216841223";
57
-      String originlatitude = "18.418738017376207";
58
-      String originlongitude = "-66.02565531285634";
59
-
60
-      //const url = 'https://www.google.com/maps/@42.585444,13.007813,6z';
61
-      const url = "https://www.google.com/maps/dir/?api=1&parameters&origin=18.418738017376207,-66.02565531285634&destination=18.39007092764153,-65.976216841223";
62
-      if (await canLaunch(url)) {
63
-      await launch(url);
64
-      } else {
65
-      throw 'Could not launch $url';
66
-      }
67
-
68
-      //String uri = "http://maps.google.com/maps?daddr=" + destinationLatitude + "," + destinationLongitude + " (" + "Doctor" + ")";
69
-      //Intent intent;
70
-      //intent.setAction(Action.ACTION_VIEW);
71
-      //Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
72
-      //intent.setPackage("com.google.android.apps.maps");
73
-      //startActivity(intent);
74
-      //UIApplication.shared.openURL(URL(string:"https://www.google.com/maps/@42.585444,13.007813,6z")!);
75
-      _counter++;
76
-    });
77
-  }
78
-
79
-  @override
80
-  Widget build(BuildContext context) {
81
-    // This method is rerun every time setState is called, for instance as done
82
-    // by the _incrementCounter method above.
83
-    //
84
-    // The Flutter framework has been optimized to make rerunning build methods
85
-    // fast, so that you can just rebuild anything that needs updating rather
86
-    // than having to individually change instances of widgets.
87
-    return Scaffold(
88
-      appBar: AppBar(
89
-        // Here we take the value from the MyHomePage object that was created by
90
-        // the App.build method, and use it to set our appbar title.
91
-        title: Text(widget.title),
92
-      ),
93
-      body: Center(
94
-        // Center is a layout widget. It takes a single child and positions it
95
-        // in the middle of the parent.
96
-        child: Column(
97
-          // Column is also a layout widget. It takes a list of children and
98
-          // arranges them vertically. By default, it sizes itself to fit its
99
-          // children horizontally, and tries to be as tall as its parent.
100
-          //
101
-          // Invoke "debug painting" (press "p" in the console, choose the
102
-          // "Toggle Debug Paint" action from the Flutter Inspector in Android
103
-          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
104
-          // to see the wireframe for each widget.
105
-          //
106
-          // Column has various properties to control how it sizes itself and
107
-          // how it positions its children. Here we use mainAxisAlignment to
108
-          // center the children vertically; the main axis here is the vertical
109
-          // axis because Columns are vertical (the cross axis would be
110
-          // horizontal).
111
-          mainAxisAlignment: MainAxisAlignment.center,
112
-          children: <Widget>[
113
-            Text(
114
-              'You have pushed the button this many times:',
115
-            ),
116
-            Text(
117
-              '$_counter',
118
-              style: Theme.of(context).textTheme.headline4,
119
-            ),
120
-          ],
121
-        ),
122
-      ),
123
-      floatingActionButton: FloatingActionButton(
124
-        onPressed: _incrementCounter,
125
-        tooltip: 'Increment',
126
-        child: Icon(Icons.add),
127
-      ), // This trailing comma makes auto-formatting nicer for build methods.
128
-    );
129
-  }
130
-}
131
-

+ 0
- 217
Carlos/home_page.dart 查看文件

@@ -1,217 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/classes/language.dart';
3
-import 'package:userstory2translate/localization/language_constants.dart';
4
-import 'package:userstory2translate/main.dart';
5
-import 'package:userstory2translate/router/route_constants.dart';
6
-
7
-class HomePage extends StatefulWidget {
8
-  HomePage({Key key}) : super(key: key);
9
-
10
-  @override
11
-  _HomePageState createState() => _HomePageState();
12
-}
13
-
14
-class _HomePageState extends State<HomePage> {
15
-  final GlobalKey<FormState> _key = GlobalKey<FormState>();
16
-  void _changeLanguage(Language language) async {
17
-    Locale _locale = await setLocale(language.languageCode);
18
-    MyApp.setLocale(context, _locale);
19
-  }
20
-
21
-  void _showSuccessDialog() {
22
-    showTimePicker(context: context, initialTime: TimeOfDay.now());
23
-  }
24
-
25
-  @override
26
-  Widget build(BuildContext context) {
27
-    return Scaffold(
28
-      appBar: AppBar(
29
-        title: Text(getTranslated(context, 'home_page')),
30
-        actions: <Widget>[
31
-          Padding(
32
-            padding: const EdgeInsets.all(8.0),
33
-            child: DropdownButton<Language>(
34
-              underline: SizedBox(),
35
-              icon: Icon(
36
-                Icons.language,
37
-                color: Colors.white,
38
-              ),
39
-              onChanged: (Language language) {
40
-                _changeLanguage(language);
41
-              },
42
-              items: Language.languageList()
43
-                  .map<DropdownMenuItem<Language>>(
44
-                    (e) => DropdownMenuItem<Language>(
45
-                  value: e,
46
-                  child: Row(
47
-                    mainAxisAlignment: MainAxisAlignment.spaceAround,
48
-                    children: <Widget>[
49
-                      Text(
50
-                        e.flag,
51
-                        style: TextStyle(fontSize: 30),
52
-                      ),
53
-                      Text(e.name)
54
-                    ],
55
-                  ),
56
-                ),
57
-              )
58
-                  .toList(),
59
-            ),
60
-          ),
61
-        ],
62
-      ),
63
-      drawer: Drawer(
64
-        child: _drawerList(),
65
-      ),
66
-      body: Container(
67
-        padding: EdgeInsets.all(20),
68
-        child: _mainForm(context),
69
-      ),
70
-    );
71
-  }
72
-
73
-  Form _mainForm(BuildContext context) {
74
-    return Form(
75
-      key: _key,
76
-      child: Column(
77
-        children: <Widget>[
78
-          Container(
79
-            height: MediaQuery.of(context).size.height / 4,
80
-            child: Center(
81
-              child: Text(
82
-                getTranslated(context, 'personal_information'),
83
-                // DemoLocalization.of(context).translate('personal_information'),
84
-                textAlign: TextAlign.center,
85
-                style: TextStyle(
86
-                  fontSize: 30,
87
-                  fontWeight: FontWeight.bold,
88
-                ),
89
-              ),
90
-            ),
91
-          ),
92
-          TextFormField(
93
-            validator: (val) {
94
-              if (val.isEmpty) {
95
-                return getTranslated(context, 'required_field');
96
-                // return DemoLocalization.of(context).translate('required_fiedl');
97
-              }
98
-              return null;
99
-            },
100
-            decoration: InputDecoration(
101
-              border: OutlineInputBorder(),
102
-              labelText: getTranslated(context, 'name'),
103
-              hintText: getTranslated(context, 'name_hint'),
104
-            ),
105
-          ),
106
-          SizedBox(
107
-            height: 10,
108
-          ),
109
-          TextFormField(
110
-            validator: (val) {
111
-              if (val.isEmpty) {
112
-                return getTranslated(context, 'required_field');
113
-              }
114
-              return null;
115
-            },
116
-            decoration: InputDecoration(
117
-              border: OutlineInputBorder(),
118
-              labelText: getTranslated(context, 'email'),
119
-              hintText: getTranslated(context, 'email_hint'),
120
-            ),
121
-          ),
122
-          SizedBox(
123
-            height: 10,
124
-          ),
125
-          TextFormField(
126
-            decoration: InputDecoration(
127
-                border: OutlineInputBorder(),
128
-                hintText: getTranslated(context, 'date_of_birth')),
129
-            onTap: () async {
130
-              FocusScope.of(context).requestFocus(FocusNode());
131
-              await showDatePicker(
132
-                context: context,
133
-                initialDate: DateTime.now(),
134
-                firstDate: DateTime(DateTime.now().year),
135
-                lastDate: DateTime(DateTime.now().year + 20),
136
-              );
137
-            },
138
-          ),
139
-          SizedBox(
140
-            height: 10,
141
-          ),
142
-          MaterialButton(
143
-            onPressed: () {
144
-              if (_key.currentState.validate()) {
145
-                _showSuccessDialog();
146
-              }
147
-            },
148
-            height: 50,
149
-            shape: StadiumBorder(),
150
-            color: Theme.of(context).primaryColor,
151
-            child: Center(
152
-              child: Text(
153
-                getTranslated(context, 'submit_info'),
154
-                style: TextStyle(color: Colors.white, fontSize: 20),
155
-              ),
156
-            ),
157
-          )
158
-        ],
159
-      ),
160
-    );
161
-  }
162
-
163
-  Container _drawerList() {
164
-    TextStyle _textStyle = TextStyle(
165
-      color: Colors.white,
166
-      fontSize: 24,
167
-    );
168
-    return Container(
169
-      color: Theme.of(context).primaryColor,
170
-      child: ListView(
171
-        padding: EdgeInsets.zero,
172
-        children: <Widget>[
173
-          DrawerHeader(
174
-            child: Container(
175
-              height: 100,
176
-              child: CircleAvatar(),
177
-            ),
178
-          ),
179
-          ListTile(
180
-            leading: Icon(
181
-              Icons.info,
182
-              color: Colors.white,
183
-              size: 30,
184
-            ),
185
-            title: Text(
186
-              getTranslated(context, 'about_us'),
187
-              style: _textStyle,
188
-            ),
189
-            onTap: () {
190
-              // To close the Drawer
191
-              Navigator.pop(context);
192
-              // Navigating to About Page
193
-              Navigator.pushNamed(context, aboutRoute);
194
-            },
195
-          ),
196
-          ListTile(
197
-            leading: Icon(
198
-              Icons.settings,
199
-              color: Colors.white,
200
-              size: 30,
201
-            ),
202
-            title: Text(
203
-              getTranslated(context, 'settings'),
204
-              style: _textStyle,
205
-            ),
206
-            onTap: () {
207
-              // To close the Drawer
208
-              Navigator.pop(context);
209
-              // Navigating to About Page
210
-              Navigator.pushNamed(context, settingsRoute);
211
-            },
212
-          ),
213
-        ],
214
-      ),
215
-    );
216
-  }
217
-}

+ 0
- 17
Carlos/language.dart 查看文件

@@ -1,17 +0,0 @@
1
-class Language {
2
-  final int id;
3
-  final String flag;
4
-  final String name;
5
-  final String languageCode;
6
-
7
-  Language(this.id, this.flag, this.name, this.languageCode);
8
-
9
-  static List<Language> languageList() {
10
-    return <Language>[
11
-      Language(1, "🇦🇫", "فارسی", "fa"),
12
-      Language(2, "🇺🇸", "English", "en"),
13
-      Language(3, "🇺🇸", "Español", "es"),
14
-      Language(4, "🇮🇳", "हिंदी", "hi"),
15
-    ];
16
-  }
17
-}

+ 0
- 42
Carlos/language_constants.dart 查看文件

@@ -1,42 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/localization/localization.dart';
3
-import 'package:shared_preferences/shared_preferences.dart';
4
-
5
-const String LAGUAGE_CODE = 'languageCode';
6
-
7
-//languages code
8
-const String ENGLISH = 'en';
9
-const String FARSI = 'fa';
10
-const String SPANISH = 'es';
11
-const String HINDI = 'hi';
12
-
13
-Future<Locale> setLocale(String languageCode) async {
14
-  SharedPreferences _prefs = await SharedPreferences.getInstance();
15
-  await _prefs.setString(LAGUAGE_CODE, languageCode);
16
-  return _locale(languageCode);
17
-}
18
-
19
-Future<Locale> getLocale() async {
20
-  SharedPreferences _prefs = await SharedPreferences.getInstance();
21
-  String languageCode = _prefs.getString(LAGUAGE_CODE) ?? "en";
22
-  return _locale(languageCode);
23
-}
24
-
25
-Locale _locale(String languageCode) {
26
-  switch (languageCode) {
27
-    case ENGLISH:
28
-      return Locale(ENGLISH, 'US');
29
-    case FARSI:
30
-      return Locale(FARSI, "IR");
31
-    case SPANISH:
32
-      return Locale(SPANISH, "SP");
33
-    case HINDI:
34
-      return Locale(HINDI, "IN");
35
-    default:
36
-      return Locale(ENGLISH, 'US');
37
-  }
38
-}
39
-
40
-String getTranslated(BuildContext context, String key) {
41
-  return DemoLocalization.of(context).translate(key);
42
-}

+ 0
- 51
Carlos/localization.dart 查看文件

@@ -1,51 +0,0 @@
1
-import 'dart:convert';
2
-
3
-import 'package:flutter/material.dart';
4
-import 'package:flutter/services.dart';
5
-
6
-class DemoLocalization {
7
-  DemoLocalization(this.locale);
8
-
9
-  final Locale locale;
10
-  static DemoLocalization of(BuildContext context) {
11
-    return Localizations.of<DemoLocalization>(context, DemoLocalization);
12
-  }
13
-
14
-  Map<String, String> _localizedValues;
15
-
16
-  Future<void> load() async {
17
-    String jsonStringValues =
18
-    await rootBundle.loadString('lib/languages/${locale.languageCode}.json');
19
-    Map<String, dynamic> mappedJson = json.decode(jsonStringValues);
20
-    _localizedValues =
21
-        mappedJson.map((key, value) => MapEntry(key, value.toString()));
22
-  }
23
-
24
-  String translate(String key) {
25
-    return _localizedValues[key];
26
-  }
27
-
28
-  // static member to have simple access to the delegate from Material App
29
-  static const LocalizationsDelegate<DemoLocalization> delegate =
30
-  _DemoLocalizationsDelegate();
31
-}
32
-
33
-class _DemoLocalizationsDelegate
34
-    extends LocalizationsDelegate<DemoLocalization> {
35
-  const _DemoLocalizationsDelegate();
36
-
37
-  @override
38
-  bool isSupported(Locale locale) {
39
-    return ['en', 'es', 'fa', 'hi'].contains(locale.languageCode);
40
-  }
41
-
42
-  @override
43
-  Future<DemoLocalization> load(Locale locale) async {
44
-    DemoLocalization localization = new DemoLocalization(locale);
45
-    await localization.load();
46
-    return localization;
47
-  }
48
-
49
-  @override
50
-  bool shouldReload(LocalizationsDelegate<DemoLocalization> old) => false;
51
-}

+ 0
- 81
Carlos/main.dart 查看文件

@@ -1,81 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/localization/localization.dart';
3
-import 'package:userstory2translate/router/custom_router.dart';
4
-import 'package:userstory2translate/router/route_constants.dart';
5
-import 'package:flutter_localizations/flutter_localizations.dart';
6
-
7
-import 'localization/language_constants.dart';
8
-
9
-void main() => runApp(MyApp());
10
-
11
-class MyApp extends StatefulWidget {
12
-  const MyApp({Key key}) : super(key: key);
13
-  static void setLocale(BuildContext context, Locale newLocale) {
14
-    _MyAppState state = context.findAncestorStateOfType<_MyAppState>();
15
-    state.setLocale(newLocale);
16
-  }
17
-
18
-  @override
19
-  _MyAppState createState() => _MyAppState();
20
-}
21
-
22
-class _MyAppState extends State<MyApp> {
23
-  Locale _locale;
24
-  setLocale(Locale locale) {
25
-    setState(() {
26
-      _locale = locale;
27
-    });
28
-  }
29
-
30
-  @override
31
-  void didChangeDependencies() {
32
-    getLocale().then((locale) {
33
-      setState(() {
34
-        this._locale = locale;
35
-      });
36
-    });
37
-    super.didChangeDependencies();
38
-  }
39
-
40
-  @override
41
-  Widget build(BuildContext context) {
42
-    if (this._locale == null) {
43
-      return Container(
44
-        child: Center(
45
-          child: CircularProgressIndicator(
46
-              valueColor: AlwaysStoppedAnimation<Color>(Colors.blue[800])),
47
-        ),
48
-      );
49
-    } else {
50
-      return MaterialApp(
51
-        debugShowCheckedModeBanner: false,
52
-        title: "Flutter Localization Demo",
53
-        theme: ThemeData(primarySwatch: Colors.blue),
54
-        locale: _locale,
55
-        supportedLocales: [
56
-          Locale("en", "US"),
57
-          Locale("fa", "IR"),
58
-          Locale("es", "SP"),
59
-          Locale("hi", "IN")
60
-        ],
61
-        localizationsDelegates: [
62
-          DemoLocalization.delegate,
63
-          GlobalMaterialLocalizations.delegate,
64
-          GlobalWidgetsLocalizations.delegate,
65
-          GlobalCupertinoLocalizations.delegate,
66
-        ],
67
-        localeResolutionCallback: (locale, supportedLocales) {
68
-          for (var supportedLocale in supportedLocales) {
69
-            if (supportedLocale.languageCode == locale.languageCode &&
70
-                supportedLocale.countryCode == locale.countryCode) {
71
-              return supportedLocale;
72
-            }
73
-          }
74
-          return supportedLocales.first;
75
-        },
76
-        onGenerateRoute: CustomRouter.generatedRoute,
77
-        initialRoute: homeRoute,
78
-      );
79
-    }
80
-  }
81
-}

+ 0
- 109
Carlos/main.dart.rtf 查看文件

@@ -1,109 +0,0 @@
1
-{\rtf1\ansi\ansicpg1252\cocoartf2577
2
-\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset0 Menlo-Italic;}
3
-{\colortbl;\red255\green255\blue255;\red191\green100\blue38;\red32\green32\blue32;\red88\green118\blue71;
4
-\red254\green187\blue91;\red153\green168\blue186;\red173\green169\blue32;\red133\green96\blue154;\red86\green132\blue173;
5
-}
6
-{\*\expandedcolortbl;;\csgenericrgb\c74902\c39216\c14902;\csgenericrgb\c12549\c12549\c12549;\csgenericrgb\c34510\c46275\c27843;
7
-\csgenericrgb\c99608\c73333\c35686;\csgenericrgb\c60000\c65882\c72941;\csgenericrgb\c67843\c66275\c12549;\csgenericrgb\c52157\c37647\c60392;\csgenericrgb\c33725\c51765\c67843;
8
-}
9
-\margl1440\margr1440\vieww11520\viewh8400\viewkind0
10
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0
11
-
12
-\f0\fs24 \cf2 \cb3 import \cf4 'package:flutter/material.dart'\cf2 ;\
13
-import \cf4 'package:userstory2translate/localization/localization.dart'\cf2 ;\
14
-import \cf4 'package:userstory2translate/router/custom_router.dart'\cf2 ;\
15
-import \cf4 'package:userstory2translate/router/route_constants.dart'\cf2 ;\
16
-import \cf4 'package:flutter_localizations/flutter_localizations.dart'\cf2 ;\
17
-\
18
-import \cf4 'localization/language_constants.dart'\cf2 ;\
19
-\
20
-void \cf5 main\cf6 () => runApp(\cf5 MyApp\cf6 ())\cf2 ;\
21
-\
22
-class \cf6 MyApp \cf2 extends \cf6 StatefulWidget \{\
23
-  \cf2 const \cf6 MyApp(\{Key key\}) : \cf2 super\cf6 (key: key)\cf2 ;\
24
-  static void 
25
-\f1\i \cf5 setLocale
26
-\f0\i0 \cf6 (BuildContext context\cf2 , \cf6 Locale newLocale) \{\
27
-    _MyAppState state = context.findAncestorStateOfType<_MyAppState>()\cf2 ;\
28
-    \cf6 state.setLocale(newLocale)\cf2 ;\
29
-  \cf6 \}\
30
-\
31
-  \cf7 @override\
32
-  \cf6 _MyAppState \cf5 createState\cf6 () => \cf5 _MyAppState\cf6 ()\cf2 ;\
33
-\cf6 \}\
34
-\
35
-\cf2 class \cf6 _MyAppState \cf2 extends \cf6 State<MyApp> \{\
36
-  Locale \cf8 _locale\cf2 ;\
37
-  \cf5 setLocale\cf6 (Locale locale) \{\
38
-    setState(() \{\
39
-      \cf8 _locale \cf6 = locale\cf2 ;\
40
-    \cf6 \})\cf2 ;\
41
-  \cf6 \}\
42
-\
43
-  \cf7 @override\
44
-  \cf2 void \cf5 didChangeDependencies\cf6 () \{\
45
-    getLocale().then((locale) \{\
46
-      setState(() \{\
47
-        \cf2 this\cf6 .\cf8 _locale \cf6 = locale\cf2 ;\
48
-      \cf6 \})\cf2 ;\
49
-    \cf6 \})\cf2 ;\
50
-    super\cf6 .didChangeDependencies()\cf2 ;\
51
-  \cf6 \}\
52
-\
53
-  \cf7 @override\
54
-  \cf6 Widget \cf5 build\cf6 (BuildContext context) \{\
55
-    \cf2 if \cf6 (\cf2 this\cf6 .\cf8 _locale \cf6 == \cf2 null\cf6 ) \{\
56
-      \cf2 return \cf5 Container\cf6 (\
57
-        child: \cf5 Center\cf6 (\
58
-          child: \cf5 CircularProgressIndicator\cf6 (\
59
-              valueColor: \cf5 AlwaysStoppedAnimation\cf6 <Color>(Colors.
60
-\f1\i \cf8 blue
61
-\f0\i0 \cf6 [\cf9 800\cf6 ]))\cf2 ,\
62
-        \cf6 )\cf2 ,\
63
-      \cf6 )\cf2 ;\
64
-    \cf6 \} \cf2 else \cf6 \{\
65
-      \cf2 return \cf5 MaterialApp\cf6 (\
66
-        debugShowCheckedModeBanner: \cf2 false,\
67
-        \cf6 title: \cf4 "Flutter Localization Demo"\cf2 ,\
68
-        \cf6 theme: \cf5 ThemeData\cf6 (primarySwatch: Colors.
69
-\f1\i \cf8 blue
70
-\f0\i0 \cf6 )\cf2 ,\
71
-        \cf6 locale: \cf8 _locale\cf2 ,\
72
-        \cf6 supportedLocales: [\
73
-          \cf5 Locale\cf6 (\cf4 "en"\cf2 , \cf4 "US"\cf6 )\cf2 ,\
74
-          \cf5 Locale\cf6 (\cf4 "fa"\cf2 , \cf4 "IR"\cf6 )\cf2 ,\
75
-          \cf5 Locale\cf6 (\cf4 "es"\cf2 , \cf4 "SP"\cf6 )\cf2 ,\
76
-          \cf5 Locale\cf6 (\cf4 "hi"\cf2 , \cf4 "IN"\cf6 )\
77
-        ]\cf2 ,\
78
-        \cf6 localizationsDelegates: [\
79
-          DemoLocalization.
80
-\f1\i \cf8 delegate
81
-\f0\i0 \cf2 ,\
82
-          \cf6 GlobalMaterialLocalizations.
83
-\f1\i \cf8 delegate
84
-\f0\i0 \cf2 ,\
85
-          \cf6 GlobalWidgetsLocalizations.
86
-\f1\i \cf8 delegate
87
-\f0\i0 \cf2 ,\
88
-          \cf6 GlobalCupertinoLocalizations.
89
-\f1\i \cf8 delegate
90
-\f0\i0 \cf2 ,\
91
-        \cf6 ]\cf2 ,\
92
-        \cf6 localeResolutionCallback: (locale\cf2 , \cf6 supportedLocales) \{\
93
-          \cf2 for \cf6 (\cf2 var \cf6 supportedLocale \cf2 in \cf6 supportedLocales) \{\
94
-            \cf2 if \cf6 (supportedLocale.\cf8 languageCode \cf6 == locale.\cf8 languageCode \cf6 &&\
95
-                supportedLocale.\cf8 countryCode \cf6 == locale.\cf8 countryCode\cf6 ) \{\
96
-              \cf2 return \cf6 supportedLocale\cf2 ;\
97
-            \cf6 \}\
98
-          \}\
99
-          \cf2 return \cf6 supportedLocales.\cf8 first\cf2 ;\
100
-        \cf6 \}\cf2 ,\
101
-        \cf6 onGenerateRoute: CustomRouter.
102
-\f1\i \cf5 generatedRoute
103
-\f0\i0 \cf2 ,\
104
-        \cf6 initialRoute: homeRoute\cf2 ,\
105
-      \cf6 )\cf2 ;\
106
-    \cf6 \}\
107
-  \}\
108
-\}\
109
-}

+ 0
- 24
Carlos/not_found_page.dart 查看文件

@@ -1,24 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-
3
-class NotFoundPage extends StatefulWidget {
4
-  NotFoundPage({Key key}) : super(key: key);
5
-
6
-  @override
7
-  _NotFoundPageState createState() => _NotFoundPageState();
8
-}
9
-
10
-class _NotFoundPageState extends State<NotFoundPage> {
11
-  @override
12
-  Widget build(BuildContext context) {
13
-    return Scaffold(
14
-      appBar: AppBar(
15
-        title: Text("Not Found"),
16
-      ),
17
-      body: Container(
18
-        child: Center(
19
-          child: Text("Sorry, We couldn't found your page"),
20
-        ),
21
-      ),
22
-    );
23
-  }
24
-}

+ 0
- 3
Carlos/route_constants.dart 查看文件

@@ -1,3 +0,0 @@
1
-const String homeRoute = "home";
2
-const String aboutRoute = "about";
3
-const String settingsRoute = "settings";

+ 0
- 54
Carlos/settings_page.dart 查看文件

@@ -1,54 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:userstory2translate/classes/language.dart';
3
-import 'package:userstory2translate/localization/language_constants.dart';
4
-import 'package:userstory2translate/main.dart';
5
-
6
-class SettingsPage extends StatefulWidget {
7
-  SettingsPage({Key key}) : super(key: key);
8
-
9
-  @override
10
-  _SettingsPageState createState() => _SettingsPageState();
11
-}
12
-
13
-class _SettingsPageState extends State<SettingsPage> {
14
-  void _changeLanguage(Language language) async {
15
-    Locale _locale = await setLocale(language.languageCode);
16
-    MyApp.setLocale(context, _locale);
17
-  }
18
-
19
-  @override
20
-  Widget build(BuildContext context) {
21
-    return Scaffold(
22
-      appBar: AppBar(
23
-        title: Text(getTranslated(context, 'settings')),
24
-      ),
25
-      body: Container(
26
-        child: Center(
27
-            child: DropdownButton<Language>(
28
-              iconSize: 30,
29
-              hint: Text(getTranslated(context, 'change_language')),
30
-              onChanged: (Language language) {
31
-                _changeLanguage(language);
32
-              },
33
-              items: Language.languageList()
34
-                  .map<DropdownMenuItem<Language>>(
35
-                    (e) => DropdownMenuItem<Language>(
36
-                  value: e,
37
-                  child: Row(
38
-                    mainAxisAlignment: MainAxisAlignment.spaceAround,
39
-                    children: <Widget>[
40
-                      Text(
41
-                        e.flag,
42
-                        style: TextStyle(fontSize: 30),
43
-                      ),
44
-                      Text(e.name)
45
-                    ],
46
-                  ),
47
-                ),
48
-              )
49
-                  .toList(),
50
-            )),
51
-      ),
52
-    );
53
-  }
54
-}

+ 0
- 77
Jorge/pubspec.yaml 查看文件

@@ -1,77 +0,0 @@
1
-name: flutter_app7
2
-description: A new Flutter application.
3
-
4
-# The following line prevents the package from being accidentally published to
5
-# pub.dev using `pub publish`. This is preferred for private packages.
6
-publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7
-
8
-# The following defines the version and build number for your application.
9
-# A version number is three numbers separated by dots, like 1.2.43
10
-# followed by an optional build number separated by a +.
11
-# Both the version and the builder number may be overridden in flutter
12
-# build by specifying --build-name and --build-number, respectively.
13
-# In Android, build-name is used as versionName while build-number used as versionCode.
14
-# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15
-# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16
-# Read more about iOS versioning at
17
-# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18
-version: 1.0.0+1
19
-
20
-environment:
21
-  sdk: ">=2.7.0 <3.0.0"
22
-
23
-dependencies:
24
-  flutter:
25
-    sdk: flutter
26
-
27
-
28
-  # The following adds the Cupertino Icons font to your application.
29
-  # Use with the CupertinoIcons class for iOS style icons.
30
-  cupertino_icons: ^1.0.0
31
-  table_calendar: ^2,0,1
32
-
33
-dev_dependencies:
34
-  flutter_test:
35
-    sdk: flutter
36
-
37
-# For information on the generic Dart part of this file, see the
38
-# following page: https://dart.dev/tools/pub/pubspec
39
-
40
-# The following section is specific to Flutter.
41
-flutter:
42
-
43
-  # The following line ensures that the Material Icons font is
44
-  # included with your application, so that you can use the icons in
45
-  # the material Icons class.
46
-  uses-material-design: true
47
-
48
-  # To add assets to your application, add an assets section, like this:
49
-  # assets:
50
-  #   - images/a_dot_burr.jpeg
51
-  #   - images/a_dot_ham.jpeg
52
-
53
-  # An image asset can refer to one or more resolution-specific "variants", see
54
-  # https://flutter.dev/assets-and-images/#resolution-aware.
55
-
56
-  # For details regarding adding assets from package dependencies, see
57
-  # https://flutter.dev/assets-and-images/#from-packages
58
-
59
-  # To add custom fonts to your application, add a fonts section here,
60
-  # in this "flutter" section. Each entry in this list should have a
61
-  # "family" key with the font family name, and a "fonts" key with a
62
-  # list giving the asset and other descriptors for the font. For
63
-  # example:
64
-  # fonts:
65
-  #   - family: Schyler
66
-  #     fonts:
67
-  #       - asset: fonts/Schyler-Regular.ttf
68
-  #       - asset: fonts/Schyler-Italic.ttf
69
-  #         style: italic
70
-  #   - family: Trajan Pro
71
-  #     fonts:
72
-  #       - asset: fonts/TrajanPro.ttf
73
-  #       - asset: fonts/TrajanPro_Bold.ttf
74
-  #         weight: 700
75
-  #
76
-  # For details regarding fonts from package dependencies,
77
-  # see https://flutter.dev/custom-fonts/#from-packages

+ 0
- 16
README.md 查看文件

@@ -1,16 +0,0 @@
1
-# flutter_app7
2
-
3
-A new Flutter application.
4
-
5
-## Getting Started
6
-
7
-This project is a starting point for a Flutter application.
8
-
9
-A few resources to get you started if this is your first Flutter project:
10
-
11
-- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12
-- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13
-
14
-For help getting started with Flutter, view our
15
-[online documentation](https://flutter.dev/docs), which offers tutorials,
16
-samples, guidance on mobile development, and a full API reference.

+ 0
- 18
flutter_app7.iml 查看文件

@@ -1,18 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<module type="JAVA_MODULE" version="4">
3
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
-    <exclude-output />
5
-    <content url="file://$MODULE_DIR$">
6
-      <sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
7
-      <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
8
-      <excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
9
-      <excludeFolder url="file://$MODULE_DIR$/.idea" />
10
-      <excludeFolder url="file://$MODULE_DIR$/.pub" />
11
-      <excludeFolder url="file://$MODULE_DIR$/build" />
12
-    </content>
13
-    <orderEntry type="sourceFolder" forTests="false" />
14
-    <orderEntry type="library" name="Dart SDK" level="project" />
15
-    <orderEntry type="library" name="Flutter Plugins" level="project" />
16
-    <orderEntry type="library" name="Dart Packages" level="project" />
17
-  </component>
18
-</module>

+ 0
- 33
hector/main.dart 查看文件

@@ -1,33 +0,0 @@
1
-
2
-import 'package:flutter/cupertino.dart';
3
-import 'package:flutter_login/flutter_login.dart';
4
-import 'package:flutter/material.dart';
5
-import 'package:google_fonts/google_fonts.dart';
6
-import 'register.dart';
7
-import 'welcome.dart';
8
-
9
-// import 'dashboard_screen.dart';
10
-
11
-
12
-
13
-void main() =>  runApp(MyApp());
14
-
15
-
16
-
17
-class MyApp extends StatelessWidget{
18
-  
19
-  static const String title = "FastMed";
20
-
21
-  @override
22
-  Widget build(BuildContext context){
23
-    final textTheme = Theme.of(context).textTheme;
24
-    return MaterialApp(
25
-      title: title,
26
-      theme: ThemeData(
27
-        textTheme: GoogleFonts.cabinTextTheme(textTheme),
28
-        ),
29
-      home: WelcomePage(),
30
-    );
31
-  }
32
-
33
-}

+ 0
- 161
hector/register.dart 查看文件

@@ -1,161 +0,0 @@
1
-import 'package:flutter_login/flutter_login.dart';
2
-import 'package:flutter/material.dart';
3
-import 'package:google_fonts/google_fonts.dart';
4
-
5
-//
6
-//Still to add: 
7
-//  Email verification, that the input has "@" and "."
8
-//  Send email and password to database
9
-//
10
-//
11
-//
12
-
13
-class RegisterPage extends StatefulWidget{
14
-  
15
-  RegisterPage({Key key, this.title}) : super(key: key);
16
-  final String title;
17
-
18
-  @override
19
-  _RegisterPageState createState() => _RegisterPageState();
20
-}
21
-
22
-class _RegisterPageState extends State<RegisterPage> {
23
-
24
-  TextEditingController email;
25
-  TextEditingController password;
26
-  TextEditingController confirmpass;
27
-
28
-  // Future<List> send_data() async {
29
-  //   final data = await
30
-  // }
31
-
32
-  String _SamePass(){
33
-    if(password == confirmpass){
34
-      return "Same password";
35
-    }
36
-    else{
37
-      return "Different passwords";
38
-    }
39
-  }
40
-
41
-  Widget _BackButton(BuildContext context){
42
-    return InkWell(
43
-      onTap: (){
44
-        Navigator.pop(context);
45
-      },
46
-      child: Row(
47
-        children: <Widget>[
48
-          Container(
49
-            padding: EdgeInsets.only(left: 0, top: 10, bottom: 10),
50
-            child: Icon(Icons.arrow_back_ios, color: Colors.black),
51
-          ),
52
-          Text("Back",
53
-          style: TextStyle(fontSize: 12, fontWeight: FontWeight.w500))
54
-        ]
55
-      ),
56
-    );
57
-  }
58
-
59
-  Widget _SubmitButton(BuildContext context){
60
-    return InkWell(
61
-       onTap: (){
62
-
63
-       },
64
-      child: Container(
65
-        padding: EdgeInsets.symmetric(vertical: 10),
66
-        width: 250,
67
-        alignment: Alignment.center,
68
-        decoration: BoxDecoration(
69
-          color: Colors.red,
70
-          borderRadius: BorderRadius.circular(30),
71
-        ),
72
-        child: Text(
73
-          "Submit",
74
-          style: TextStyle(fontSize: 22, color: Colors.white),
75
-        ),
76
-      ),
77
-    );
78
-  }
79
-
80
-  Widget _EntryField(String title, TextEditingController controller, {bool pass = false}){
81
-    return Container(
82
-      padding: EdgeInsets.only(left: 0, top: 10, bottom: 10),
83
-      child: Column(
84
-        crossAxisAlignment: CrossAxisAlignment.start,
85
-      
86
-        children: <Widget> [
87
-          Text(
88
-            title,
89
-            style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
90
-          ),
91
-          SizedBox(
92
-            height: 30
93
-          ),
94
-          TextField(
95
-            controller: controller,
96
-            obscureText: pass,
97
-            decoration: InputDecoration(
98
-              border: (
99
-                  UnderlineInputBorder()
100
-              ),
101
-            ),
102
-          )
103
-        ]
104
-      ),
105
-      
106
-    );
107
-  }
108
-
109
-  Widget _Fills(){
110
-    return Column(
111
-      children: <Widget> [
112
-      _EntryField("Email", email),
113
-      _EntryField("Password", password, pass: true),
114
-      _EntryField("Confirm Password", confirmpass, pass: true)
115
-    
116
-    ]
117
-    );
118
-  }
119
-
120
-//add column or stack
121
-  @override
122
-  Widget build(BuildContext context) {
123
-    final height = MediaQuery.of(context).size.height;
124
-    return Scaffold(
125
-      body: Container(
126
-        height: height,
127
-        child: Stack(
128
-          
129
-          children: <Widget>[
130
-            Container(
131
-              padding: EdgeInsets.symmetric(horizontal: 20),
132
-              child: SingleChildScrollView(
133
-                child: Column(
134
-                  crossAxisAlignment: CrossAxisAlignment.center,
135
-                  mainAxisAlignment: MainAxisAlignment.center,
136
-                  children: <Widget>[
137
-                     SizedBox(
138
-                      height: 200,
139
-                    ),
140
-                    _Fills(),
141
-                    //Add code to verify if password and confirm password match
142
-                    SizedBox(
143
-                      height: 20,
144
-                    ),
145
-                    _SubmitButton(context),
146
-                  ],
147
-                ),
148
-              )
149
-            ),
150
-            Positioned(
151
-            top: 12, left: 20, child: _BackButton(context),
152
-          ),
153
-          ],
154
-          
155
-        ),
156
-      )
157
-    );
158
-  }
159
-    
160
-}
161
-

+ 0
- 201
hector/welcome.dart 查看文件

@@ -1,201 +0,0 @@
1
-
2
-
3
-import 'package:flutter_login/flutter_login.dart';
4
-import 'package:flutter/material.dart';
5
-import 'package:google_fonts/google_fonts.dart';
6
-import 'register.dart';
7
-
8
-
9
-
10
-
11
-
12
-class WelcomePage extends StatefulWidget {
13
-  WelcomePage({Key key, this.title}) : super(key: key);
14
-
15
-  final String title;
16
-
17
-  @override
18
-  _WelcomePageState createState() => _WelcomePageState();
19
-}
20
-
21
-class _WelcomePageState extends State<WelcomePage> {
22
-
23
-  TextEditingController email;
24
-  TextEditingController password;
25
-
26
-  Widget _message(BuildContext context){
27
-    return RichText(
28
-      textAlign: TextAlign.center,
29
-      text: TextSpan(
30
-          text: "Don't have an account?",
31
-          style: GoogleFonts.cabin(
32
-              fontSize: 18,
33
-              color: Colors.black
34
-          )
35
-      ),
36
-    );
37
-  }
38
-
39
-  Widget _title(BuildContext context){
40
-    return RichText(
41
-      textAlign: TextAlign.center,
42
-      text: TextSpan(
43
-          text: "Welcome to FastMed",
44
-          style: GoogleFonts.cabin(
45
-              fontSize: 30,
46
-              color: Colors.red
47
-          )
48
-      ),
49
-    );
50
-
51
-  }
52
-
53
-  Widget _LoginField(String title, TextEditingController controller, {bool pass = false}){
54
-    return Container(
55
-      padding: EdgeInsets.only(left: 0, top: 10, bottom: 10),
56
-      child: Column(
57
-          crossAxisAlignment: CrossAxisAlignment.start,
58
-
59
-          children: <Widget> [
60
-            Text(
61
-              title,
62
-              style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
63
-            ),
64
-            SizedBox(
65
-                height: 30
66
-            ),
67
-            TextField(
68
-              controller: controller,
69
-              obscureText: pass,
70
-              decoration: InputDecoration(
71
-                border: (
72
-                    UnderlineInputBorder(
73
-
74
-                    )
75
-                ),
76
-              ),
77
-            ),
78
-          ]
79
-      ),
80
-
81
-    );
82
-  }
83
-
84
-  Widget _Fills(){
85
-    return Column(
86
-        children: <Widget> [
87
-          _LoginField("Email", email),
88
-          _LoginField("Password", password, pass: true),
89
-
90
-        ]
91
-    );
92
-  }
93
-
94
-
95
-
96
-  // Widget _LogInButton(BuildContext context){
97
-  //   return InkWell(
98
-  //     // onTap: () {
99
-  //     //   Navigator.push(context, MaterialPageRoute(builder: (context)) => __LoginPage())
100
-  //     // },
101
-  //     child: Container(
102
-  //       // width: MediaQuery.of(context).size.width,
103
-  //       width: 200,
104
-  //       // height: ,
105
-  //       padding: EdgeInsets.symmetric(vertical:8),
106
-  //       alignment: Alignment.center,
107
-  //       decoration: BoxDecoration(
108
-  //         color: Colors.red,
109
-  //         // shape:
110
-  //
111
-  //         borderRadius: BorderRadius.circular(30),
112
-  //       ),
113
-  //       child: Text(
114
-  //         "Login",
115
-  //         style: TextStyle(fontSize: 25, color: Colors.white),
116
-  //       ),
117
-  //
118
-  //     )
119
-  //   );
120
-  // }
121
-
122
-  Widget _RegisterButton(BuildContext context){
123
-    return InkWell(
124
-        onTap: () {
125
-          Navigator.push(
126
-              context, MaterialPageRoute(builder: (context) => RegisterPage()));
127
-        },
128
-        child: Container(
129
-          // width: MediaQuery.of(context).size.width,
130
-          width: 180,
131
-          padding: EdgeInsets.symmetric(vertical:8),
132
-          alignment: Alignment.center,
133
-          decoration: BoxDecoration(
134
-            color: Colors.red,
135
-            // shape:
136
-
137
-            borderRadius: BorderRadius.circular(30),
138
-          ),
139
-          child: Text(
140
-            "Register",
141
-            style: TextStyle(fontSize: 22, color: Colors.white),
142
-          ),
143
-
144
-        )
145
-    );
146
-  }
147
-
148
-  @override
149
-  Widget build(BuildContext context) {
150
-    final height = MediaQuery.of(context).size.height;
151
-    return Scaffold(
152
-        body: Container(
153
-          height: height,
154
-          child:Container(
155
-            width: MediaQuery.of(context).size.width,
156
-            padding: EdgeInsets.symmetric(horizontal: 20),
157
-            // height: MediaQuery.of(context).size.height,
158
-            decoration: BoxDecoration(
159
-                borderRadius: BorderRadius.all(Radius.circular(4)),
160
-                boxShadow: [
161
-                  BoxShadow(
162
-                      color: Colors.white,
163
-                      offset: Offset(0,3),
164
-                      blurRadius: 5,
165
-                      spreadRadius: 2)
166
-                ]
167
-
168
-            ),
169
-            child: SingleChildScrollView(
170
-                child: Column(
171
-                  crossAxisAlignment: CrossAxisAlignment.center,
172
-                  mainAxisAlignment: MainAxisAlignment.center,
173
-                  children: <Widget> [
174
-                    SizedBox(
175
-                      height: 80,
176
-                    ),
177
-                    _title(context),
178
-                    SizedBox(
179
-                      height: 150,
180
-                    ),
181
-                    // _LogInButton(context),
182
-                    _Fills(),
183
-                    SizedBox(
184
-                      height: 60,
185
-                    ),
186
-                    _message(context),
187
-                    SizedBox(
188
-                      height: 10,
189
-                    ),
190
-                    _RegisterButton(context),
191
-                    SizedBox(
192
-                      height: 10,
193
-                    )
194
-                  ],
195
-                )
196
-            ),
197
-          ),
198
-        )
199
-    );
200
-  }
201
-}

+ 0
- 164
package_config.json 查看文件

@@ -1,164 +0,0 @@
1
-{
2
-  "configVersion": 2,
3
-  "packages": [
4
-    {
5
-      "name": "async",
6
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.5.0-nullsafety.1",
7
-      "packageUri": "lib/",
8
-      "languageVersion": "2.10"
9
-    },
10
-    {
11
-      "name": "boolean_selector",
12
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0-nullsafety.1",
13
-      "packageUri": "lib/",
14
-      "languageVersion": "2.10"
15
-    },
16
-    {
17
-      "name": "characters",
18
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety.3",
19
-      "packageUri": "lib/",
20
-      "languageVersion": "2.10"
21
-    },
22
-    {
23
-      "name": "charcode",
24
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0-nullsafety.1",
25
-      "packageUri": "lib/",
26
-      "languageVersion": "2.10"
27
-    },
28
-    {
29
-      "name": "clock",
30
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0-nullsafety.1",
31
-      "packageUri": "lib/",
32
-      "languageVersion": "2.10"
33
-    },
34
-    {
35
-      "name": "collection",
36
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety.3",
37
-      "packageUri": "lib/",
38
-      "languageVersion": "2.10"
39
-    },
40
-    {
41
-      "name": "cupertino_icons",
42
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.0",
43
-      "packageUri": "lib/",
44
-      "languageVersion": "2.0"
45
-    },
46
-    {
47
-      "name": "fake_async",
48
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0-nullsafety.1",
49
-      "packageUri": "lib/",
50
-      "languageVersion": "2.10"
51
-    },
52
-    {
53
-      "name": "flutter",
54
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/packages/flutter",
55
-      "packageUri": "lib/",
56
-      "languageVersion": "2.10"
57
-    },
58
-    {
59
-      "name": "flutter_test",
60
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/packages/flutter_test",
61
-      "packageUri": "lib/",
62
-      "languageVersion": "2.2"
63
-    },
64
-    {
65
-      "name": "intl",
66
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.16.1",
67
-      "packageUri": "lib/",
68
-      "languageVersion": "2.5"
69
-    },
70
-    {
71
-      "name": "matcher",
72
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10-nullsafety.1",
73
-      "packageUri": "lib/",
74
-      "languageVersion": "2.10"
75
-    },
76
-    {
77
-      "name": "meta",
78
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety.3",
79
-      "packageUri": "lib/",
80
-      "languageVersion": "2.10"
81
-    },
82
-    {
83
-      "name": "path",
84
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.1",
85
-      "packageUri": "lib/",
86
-      "languageVersion": "2.10"
87
-    },
88
-    {
89
-      "name": "simple_gesture_detector",
90
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/simple_gesture_detector-0.1.4",
91
-      "packageUri": "lib/",
92
-      "languageVersion": "2.1"
93
-    },
94
-    {
95
-      "name": "sky_engine",
96
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/bin/cache/pkg/sky_engine",
97
-      "packageUri": "lib/",
98
-      "languageVersion": "1.11"
99
-    },
100
-    {
101
-      "name": "source_span",
102
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.0-nullsafety.2",
103
-      "packageUri": "lib/",
104
-      "languageVersion": "2.10"
105
-    },
106
-    {
107
-      "name": "stack_trace",
108
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0-nullsafety.1",
109
-      "packageUri": "lib/",
110
-      "languageVersion": "2.10"
111
-    },
112
-    {
113
-      "name": "stream_channel",
114
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0-nullsafety.1",
115
-      "packageUri": "lib/",
116
-      "languageVersion": "2.10"
117
-    },
118
-    {
119
-      "name": "string_scanner",
120
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0-nullsafety.1",
121
-      "packageUri": "lib/",
122
-      "languageVersion": "2.10"
123
-    },
124
-    {
125
-      "name": "table_calendar",
126
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/table_calendar-2.3.0",
127
-      "packageUri": "lib/",
128
-      "languageVersion": "2.7"
129
-    },
130
-    {
131
-      "name": "term_glyph",
132
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0-nullsafety.1",
133
-      "packageUri": "lib/",
134
-      "languageVersion": "2.10"
135
-    },
136
-    {
137
-      "name": "test_api",
138
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.19-nullsafety.2",
139
-      "packageUri": "lib/",
140
-      "languageVersion": "2.10"
141
-    },
142
-    {
143
-      "name": "typed_data",
144
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety.3",
145
-      "packageUri": "lib/",
146
-      "languageVersion": "2.10"
147
-    },
148
-    {
149
-      "name": "vector_math",
150
-      "rootUri": "file:///C:/Users/Q524U/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety.3",
151
-      "packageUri": "lib/",
152
-      "languageVersion": "2.10"
153
-    },
154
-    {
155
-      "name": "flutter_app7",
156
-      "rootUri": "../",
157
-      "packageUri": "lib/",
158
-      "languageVersion": "2.7"
159
-    }
160
-  ],
161
-  "generated": "2020-11-05T14:27:55.447604Z",
162
-  "generator": "pub",
163
-  "generatorVersion": "2.10.3"
164
-}

+ 0
- 175
pubspec.lock 查看文件

@@ -1,175 +0,0 @@
1
-# Generated by pub
2
-# See https://dart.dev/tools/pub/glossary#lockfile
3
-packages:
4
-  async:
5
-    dependency: transitive
6
-    description:
7
-      name: async
8
-      url: "https://pub.dartlang.org"
9
-    source: hosted
10
-    version: "2.5.0-nullsafety.1"
11
-  boolean_selector:
12
-    dependency: transitive
13
-    description:
14
-      name: boolean_selector
15
-      url: "https://pub.dartlang.org"
16
-    source: hosted
17
-    version: "2.1.0-nullsafety.1"
18
-  characters:
19
-    dependency: transitive
20
-    description:
21
-      name: characters
22
-      url: "https://pub.dartlang.org"
23
-    source: hosted
24
-    version: "1.1.0-nullsafety.3"
25
-  charcode:
26
-    dependency: transitive
27
-    description:
28
-      name: charcode
29
-      url: "https://pub.dartlang.org"
30
-    source: hosted
31
-    version: "1.2.0-nullsafety.1"
32
-  clock:
33
-    dependency: transitive
34
-    description:
35
-      name: clock
36
-      url: "https://pub.dartlang.org"
37
-    source: hosted
38
-    version: "1.1.0-nullsafety.1"
39
-  collection:
40
-    dependency: transitive
41
-    description:
42
-      name: collection
43
-      url: "https://pub.dartlang.org"
44
-    source: hosted
45
-    version: "1.15.0-nullsafety.3"
46
-  cupertino_icons:
47
-    dependency: "direct main"
48
-    description:
49
-      name: cupertino_icons
50
-      url: "https://pub.dartlang.org"
51
-    source: hosted
52
-    version: "1.0.0"
53
-  fake_async:
54
-    dependency: transitive
55
-    description:
56
-      name: fake_async
57
-      url: "https://pub.dartlang.org"
58
-    source: hosted
59
-    version: "1.2.0-nullsafety.1"
60
-  flutter:
61
-    dependency: "direct main"
62
-    description: flutter
63
-    source: sdk
64
-    version: "0.0.0"
65
-  flutter_test:
66
-    dependency: "direct dev"
67
-    description: flutter
68
-    source: sdk
69
-    version: "0.0.0"
70
-  intl:
71
-    dependency: transitive
72
-    description:
73
-      name: intl
74
-      url: "https://pub.dartlang.org"
75
-    source: hosted
76
-    version: "0.16.1"
77
-  matcher:
78
-    dependency: transitive
79
-    description:
80
-      name: matcher
81
-      url: "https://pub.dartlang.org"
82
-    source: hosted
83
-    version: "0.12.10-nullsafety.1"
84
-  meta:
85
-    dependency: transitive
86
-    description:
87
-      name: meta
88
-      url: "https://pub.dartlang.org"
89
-    source: hosted
90
-    version: "1.3.0-nullsafety.3"
91
-  path:
92
-    dependency: transitive
93
-    description:
94
-      name: path
95
-      url: "https://pub.dartlang.org"
96
-    source: hosted
97
-    version: "1.8.0-nullsafety.1"
98
-  simple_gesture_detector:
99
-    dependency: transitive
100
-    description:
101
-      name: simple_gesture_detector
102
-      url: "https://pub.dartlang.org"
103
-    source: hosted
104
-    version: "0.1.4"
105
-  sky_engine:
106
-    dependency: transitive
107
-    description: flutter
108
-    source: sdk
109
-    version: "0.0.99"
110
-  source_span:
111
-    dependency: transitive
112
-    description:
113
-      name: source_span
114
-      url: "https://pub.dartlang.org"
115
-    source: hosted
116
-    version: "1.8.0-nullsafety.2"
117
-  stack_trace:
118
-    dependency: transitive
119
-    description:
120
-      name: stack_trace
121
-      url: "https://pub.dartlang.org"
122
-    source: hosted
123
-    version: "1.10.0-nullsafety.1"
124
-  stream_channel:
125
-    dependency: transitive
126
-    description:
127
-      name: stream_channel
128
-      url: "https://pub.dartlang.org"
129
-    source: hosted
130
-    version: "2.1.0-nullsafety.1"
131
-  string_scanner:
132
-    dependency: transitive
133
-    description:
134
-      name: string_scanner
135
-      url: "https://pub.dartlang.org"
136
-    source: hosted
137
-    version: "1.1.0-nullsafety.1"
138
-  table_calendar:
139
-    dependency: "direct main"
140
-    description:
141
-      name: table_calendar
142
-      url: "https://pub.dartlang.org"
143
-    source: hosted
144
-    version: "2.3.0"
145
-  term_glyph:
146
-    dependency: transitive
147
-    description:
148
-      name: term_glyph
149
-      url: "https://pub.dartlang.org"
150
-    source: hosted
151
-    version: "1.2.0-nullsafety.1"
152
-  test_api:
153
-    dependency: transitive
154
-    description:
155
-      name: test_api
156
-      url: "https://pub.dartlang.org"
157
-    source: hosted
158
-    version: "0.2.19-nullsafety.2"
159
-  typed_data:
160
-    dependency: transitive
161
-    description:
162
-      name: typed_data
163
-      url: "https://pub.dartlang.org"
164
-    source: hosted
165
-    version: "1.3.0-nullsafety.3"
166
-  vector_math:
167
-    dependency: transitive
168
-    description:
169
-      name: vector_math
170
-      url: "https://pub.dartlang.org"
171
-    source: hosted
172
-    version: "2.1.0-nullsafety.3"
173
-sdks:
174
-  dart: ">=2.10.0-110 <2.11.0"
175
-  flutter: ">=1.17.0 <2.0.0"

+ 0
- 77
pubspec.yaml 查看文件

@@ -1,77 +0,0 @@
1
-name: flutter_app7
2
-description: A new Flutter application.
3
-
4
-# The following line prevents the package from being accidentally published to
5
-# pub.dev using `pub publish`. This is preferred for private packages.
6
-publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7
-
8
-# The following defines the version and build number for your application.
9
-# A version number is three numbers separated by dots, like 1.2.43
10
-# followed by an optional build number separated by a +.
11
-# Both the version and the builder number may be overridden in flutter
12
-# build by specifying --build-name and --build-number, respectively.
13
-# In Android, build-name is used as versionName while build-number used as versionCode.
14
-# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15
-# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16
-# Read more about iOS versioning at
17
-# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18
-version: 1.0.0+1
19
-
20
-environment:
21
-  sdk: ">=2.7.0 <3.0.0"
22
-
23
-dependencies:
24
-  flutter:
25
-    sdk: flutter
26
-
27
-
28
-  # The following adds the Cupertino Icons font to your application.
29
-  # Use with the CupertinoIcons class for iOS style icons.
30
-  cupertino_icons: ^1.0.0
31
-  table_calendar: ^2,0,1
32
-
33
-dev_dependencies:
34
-  flutter_test:
35
-    sdk: flutter
36
-
37
-# For information on the generic Dart part of this file, see the
38
-# following page: https://dart.dev/tools/pub/pubspec
39
-
40
-# The following section is specific to Flutter.
41
-flutter:
42
-
43
-  # The following line ensures that the Material Icons font is
44
-  # included with your application, so that you can use the icons in
45
-  # the material Icons class.
46
-  uses-material-design: true
47
-
48
-  # To add assets to your application, add an assets section, like this:
49
-  # assets:
50
-  #   - images/a_dot_burr.jpeg
51
-  #   - images/a_dot_ham.jpeg
52
-
53
-  # An image asset can refer to one or more resolution-specific "variants", see
54
-  # https://flutter.dev/assets-and-images/#resolution-aware.
55
-
56
-  # For details regarding adding assets from package dependencies, see
57
-  # https://flutter.dev/assets-and-images/#from-packages
58
-
59
-  # To add custom fonts to your application, add a fonts section here,
60
-  # in this "flutter" section. Each entry in this list should have a
61
-  # "family" key with the font family name, and a "fonts" key with a
62
-  # list giving the asset and other descriptors for the font. For
63
-  # example:
64
-  # fonts:
65
-  #   - family: Schyler
66
-  #     fonts:
67
-  #       - asset: fonts/Schyler-Regular.ttf
68
-  #       - asset: fonts/Schyler-Italic.ttf
69
-  #         style: italic
70
-  #   - family: Trajan Pro
71
-  #     fonts:
72
-  #       - asset: fonts/TrajanPro.ttf
73
-  #       - asset: fonts/TrajanPro_Bold.ttf
74
-  #         weight: 700
75
-  #
76
-  # For details regarding fonts from package dependencies,
77
-  # see https://flutter.dev/custom-fonts/#from-packages