Skip to content

Commit 75d833b

Browse files
committed
updated: package to be standard across all example apps
1 parent 01a2ac5 commit 75d833b

File tree

114 files changed

+12201
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+12201
-290
lines changed

README.md

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,74 @@
11
![Image](img/github_banner.png)
22

3-
43
### Show some :heart: and star the repo to support the project
4+
55
[![GitHub stars](https://img.shields.io/github/stars/nisrulz/flutter-examples.svg?style=social&label=Star)](https://github.com/nisrulz/flutter-examples) [![GitHub forks](https://img.shields.io/github/forks/nisrulz/flutter-examples.svg?style=social&label=Fork)](https://github.com/nisrulz/flutter-examples/fork) [![GitHub watchers](https://img.shields.io/github/watchers/nisrulz/flutter-examples.svg?style=social&label=Watch)](https://github.com/nisrulz/flutter-examples) [![GitHub followers](https://img.shields.io/github/followers/nisrulz.svg?style=social&label=Follow)](https://github.com/nisrulz/flutter-examples)
66
[![Twitter Follow](https://img.shields.io/twitter/follow/nisrulz.svg?style=social)](https://twitter.com/nisrulz)
77

88
Main repository containing all the example apps demonstrating features/functionality/integrations in [Flutter](https://flutter.io/) application development
99

1010
### Featured In
11+
1112
- [Flutter Weekly #11](https://mailchi.mp/5db146a7468b/flutter-weekly-11)
1213

1314
Lookup Links: [[Setup Flutter](https://flutter.io/setup/)] [[Widgets Catalog](https://flutter.io/widgets/)] [[Dart Lang](https://flutter.io/bootstrap-into-dart/)]
1415

15-
1616
<img src="stateful_widget/demo_img.gif" height="300em" /> <img src="using_bottom_nav_bar/demo_img.gif" height="300em" /> <img src="dropdown_button/demo_img.gif" height="300em" /> <img src="using_stepper/demo_img.gif" height="300em" /> <img src="using_tabs/demo_img.gif" height="300em" />
1717

1818
## Example apps
1919

20-
1. [Simple Material App](/simple_material_app) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/simple_material_app)
21-
1. [Using Theme](/using_theme) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_theme)
22-
1. [Stateless Widgets](/stateless_widgets) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/stateless_widgets)
23-
1. [Stateful Widget](/stateful_widget) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/stateful_widget)
24-
1. [Using EditText](/using_edittext) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_edittext)
25-
1. [Load local image](/load_local_image) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/load_local_image)
26-
1. [Load local json](/load_local_json) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/load_local_json)
27-
1. [Using HTTP GET](/using_http_get) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_http_get)
28-
1. [Using Alert Dialog](/using_alert_dialog) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_alert_dialog)
29-
1. [Using Stepper](/using_stepper) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_stepper)
30-
1. [Using Tabs](/using_tabs) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_tabs)
31-
1. [Using Bottom Navigation Bar](/using_bottom_nav_bar) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_bottom_nav_bar)
32-
1. [Using Custom Fonts](/using_custom_fonts) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_custom_fonts)
33-
1. [Using Gradient](/using_gradient) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_gradient)
34-
1. [Navigation Drawer](/navigation_drawer) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/navigation_drawer)
35-
1. [Enable Splash Screen](/enabling_splash_screen) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/enabling_splash_screen)
36-
1. [Using Listview](/using_listview) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_listview)
37-
1. [Using SnackBar](/using_snackbar) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_snackbar)
38-
1. [Grid Layout](/grid_layout) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/grid_layout)
39-
1. [DropDown Button](/dropdown_button) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/dropdown_button)
40-
1. [Image from Network](/image_from_network) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/image_from_network)
41-
1. [Infinite List](/infinite_list) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/infinite_list)
20+
1. [Simple Material App](/simple_material_app) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/simple_material_app)
21+
1. [Using Theme](/using_theme) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_theme)
22+
1. [Stateless Widgets](/stateless_widgets) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/stateless_widgets)
23+
1. [Stateful Widget](/stateful_widget) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/stateful_widget)
24+
1. [Using EditText](/using_edittext) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_edittext)
25+
1. [Load local image](/load_local_image) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/load_local_image)
26+
1. [Load local json](/load_local_json) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/load_local_json)
27+
1. [Using HTTP GET](/using_http_get) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_http_get)
28+
1. [Using Alert Dialog](/using_alert_dialog) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_alert_dialog)
29+
1. [Using Stepper](/using_stepper) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_stepper)
30+
1. [Using Tabs](/using_tabs) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_tabs)
31+
1. [Using Bottom Navigation Bar](/using_bottom_nav_bar) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_bottom_nav_bar)
32+
1. [Using Custom Fonts](/using_custom_fonts) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_custom_fonts)
33+
1. [Using Gradient](/using_gradient) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_gradient)
34+
1. [Navigation Drawer](/navigation_drawer) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/navigation_drawer)
35+
1. [Enable Splash Screen](/enabling_splash_screen) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/enabling_splash_screen)
36+
1. [Using Listview](/using_listview) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_listview)
37+
1. [Using SnackBar](/using_snackbar) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/using_snackbar)
38+
1. [Grid Layout](/grid_layout) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/grid_layout)
39+
1. [DropDown Button](/dropdown_button) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/dropdown_button)
40+
1. [Image from Network](/image_from_network) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/image_from_network)
41+
1. [Infinite List](/infinite_list) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/infinite_list)
42+
1. [Google Signin](/google_signin) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/google_signin)
4243

4344
### Complete apps with multiple features
4445

45-
1. [Tip Calculator](/tip_calculator) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/tip_calculator)
46-
46+
1. [Tip Calculator](/tip_calculator) [![download](img/ic_download.png)](https://kinolien.github.com/gitzip/?download=https://github.com/nisrulz/flutter-examples/tree/master/tip_calculator)
4747

4848
# Pull Requests
49+
4950
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
50-
1. Match coding style (braces, spacing, etc.) This is best achieved using `Reformat Code` feature of Android Studio `CMD`+`Option`+`L` on Mac and `CTRL` + `ALT` + `L` on Linux + Windows .
51-
2. If its a feature, bugfix, or anything please only change code to what you specify.
52-
3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
53-
4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.
54-
5. Check for existing [issues](https://github.com/nisrulz/flutter-examples/issues) first, before filing an issue.
55-
6. Make sure you follow the set standard as all other projects in this repo do
56-
7. Have fun!
5751

52+
1. Match coding style (braces, spacing, etc.) This is best achieved using `Reformat Code` feature of Android Studio `CMD`+`Option`+`L` on Mac and `CTRL` + `ALT` + `L` on Linux + Windows .
53+
2. If its a feature, bugfix, or anything please only change code to what you specify.
54+
3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
55+
4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.
56+
5. Check for existing [issues](https://github.com/nisrulz/flutter-examples/issues) first, before filing an issue.
57+
6. Make sure you follow the set standard as all other projects in this repo do
58+
7. Have fun!
5859

5960
> P.S. : I saw if you use Adblocker then Gitzip downloads an empty `zip` file, so disable Adblocker to get the correct `zip` file.
6061
6162
### Created & Maintained By
63+
6264
[Nishant Srivastava](https://github.com/nisrulz) ([@nisrulz](https://www.twitter.com/nisrulz))
6365

6466
> If you found these examples helpful or you learned something from their source code and want to thank me, consider buying me a cup of :coffee:
65-
> + [PayPal](https://www.paypal.me/nisrulz/5)
66-
> + Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL
67+
>
68+
> - [PayPal](https://www.paypal.me/nisrulz/5)
69+
> - Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL
6770
68-
License
69-
=======
71+
# License
7072

7173
Copyright 2017 Nishant Srivastava
7274

enabling_splash_screen/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424

2525
defaultConfig {
2626
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
27-
applicationId "com.yourcompany.enablingsplashscreen"
27+
applicationId "github.nisrulz.enablingsplashscreen"
2828
minSdkVersion 16
2929
targetSdkVersion 25
3030
versionCode 1

enabling_splash_screen/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.yourcompany.enablingsplashscreen">
2+
package="github.nisrulz.enablingsplashscreen">
33

44
<!-- The INTERNET permission is required for development. Specifically,
55
flutter needs it to communicate with the running application

enabling_splash_screen/android/app/src/main/java/com/yourcompany/enablingsplashscreen/MainActivity.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

infinite_list/android/app/src/main/java/com/khandelwal/dipansh/infinitelist/MainActivity.java renamed to enabling_splash_screen/android/app/src/main/java/github/nisrulz/enablingsplashscreen/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.khandelwal.dipansh.infinitelist;
1+
package github.nisrulz.enablingsplashscreen;
22

33
import android.os.Bundle;
44

enabling_splash_screen/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
"$(inherited)",
383383
"$(PROJECT_DIR)/Flutter",
384384
);
385-
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.enablingSplashScreen;
385+
PRODUCT_BUNDLE_IDENTIFIER = github.nisrulz.enablingSplashScreen;
386386
PRODUCT_NAME = "$(TARGET_NAME)";
387387
};
388388
name = Debug;
@@ -404,7 +404,7 @@
404404
"$(inherited)",
405405
"$(PROJECT_DIR)/Flutter",
406406
);
407-
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.enablingSplashScreen;
407+
PRODUCT_BUNDLE_IDENTIFIER = github.nisrulz.enablingSplashScreen;
408408
PRODUCT_NAME = "$(TARGET_NAME)";
409409
};
410410
name = Release;

google_signin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# google_signin
1+
# Google Signin
22

3-
A simple flutter app to demonstrate Google signin using Firebase. Register your app on Firebase and enable Google authentication.
3+
Example app to demonstrate Google signin using Firebase. Register your app on Firebase and enable Google authentication.
44

55
![Initial Page](page1.jpg)
66
![Login Dialog](page2.jpg)

google_signin/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ android {
2323

2424
defaultConfig {
2525
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
26-
applicationId "com.theroboticlab.googlesignin"
26+
applicationId "github.nisrulz.googlesignin"
2727
minSdkVersion 16
2828
targetSdkVersion 27
2929
versionCode 1

google_signin/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.theroboticlab.googlesignin">
2+
package="github.nisrulz.googlesignin">
33

44
<!-- The INTERNET permission is required for development. Specifically,
55
flutter needs it to communicate with the running application

using_stepper/android/app/src/main/java/com/yourcompany/usingstepper/MainActivity.java renamed to google_signin/android/app/src/main/java/github/nisrulz/googlesignin/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.yourcompany.usingstepper;
1+
package github.nisrulz.googlesignin;
22

33
import android.os.Bundle;
44

google_signin/android/gradlew

100644100755
File mode changed.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

google_signin/ios/Podfile

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
def parse_KV_file(file, separator='=')
8+
file_abs_path = File.expand_path(file)
9+
if !File.exists? file_abs_path
10+
return [];
11+
end
12+
pods_ary = []
13+
skip_line_start_symbols = ["#", "/"]
14+
File.foreach(file_abs_path) { |line|
15+
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
16+
plugin = line.split(pattern=separator)
17+
if plugin.length == 2
18+
podname = plugin[0].strip()
19+
path = plugin[1].strip()
20+
podpath = File.expand_path("#{path}", file_abs_path)
21+
pods_ary.push({:name => podname, :path => podpath});
22+
else
23+
puts "Invalid plugin specification: #{line}"
24+
end
25+
}
26+
return pods_ary
27+
end
28+
29+
target 'Runner' do
30+
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
31+
# referring to absolute paths on developers' machines.
32+
system('rm -rf .symlinks')
33+
system('mkdir -p .symlinks/plugins')
34+
35+
# Flutter Pods
36+
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
37+
if generated_xcode_build_settings.empty?
38+
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
39+
end
40+
generated_xcode_build_settings.map { |p|
41+
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
42+
symlink = File.join('.symlinks', 'flutter')
43+
File.symlink(File.dirname(p[:path]), symlink)
44+
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
45+
end
46+
}
47+
48+
# Plugin Pods
49+
plugin_pods = parse_KV_file('../.flutter-plugins')
50+
plugin_pods.map { |p|
51+
symlink = File.join('.symlinks', 'plugins', p[:name])
52+
File.symlink(p[:path], symlink)
53+
pod p[:name], :path => File.join(symlink, 'ios')
54+
}
55+
end
56+
57+
post_install do |installer|
58+
installer.pods_project.targets.each do |target|
59+
target.build_configurations.each do |config|
60+
config.build_settings['ENABLE_BITCODE'] = 'NO'
61+
end
62+
end
63+
end

google_signin/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
"$(inherited)",
383383
"$(PROJECT_DIR)/Flutter",
384384
);
385-
PRODUCT_BUNDLE_IDENTIFIER = com.theroboticlab.googleSignin;
385+
PRODUCT_BUNDLE_IDENTIFIER = github.nisrulz.googleSignin;
386386
PRODUCT_NAME = "$(TARGET_NAME)";
387387
};
388388
name = Debug;
@@ -404,7 +404,7 @@
404404
"$(inherited)",
405405
"$(PROJECT_DIR)/Flutter",
406406
);
407-
PRODUCT_BUNDLE_IDENTIFIER = com.theroboticlab.googleSignin;
407+
PRODUCT_BUNDLE_IDENTIFIER = github.nisrulz.googleSignin;
408408
PRODUCT_NAME = "$(TARGET_NAME)";
409409
};
410410
name = Release;

google_signin/lib/home.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import 'package:flutter/foundation.dart';
12
import 'package:flutter/material.dart';
23
import 'package:meta/meta.dart';
3-
import 'package:flutter/foundation.dart';
44

55
class Home extends StatelessWidget {
66
Home(

google_signin/lib/main.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import 'dart:async';
2+
3+
import 'package:firebase_auth/firebase_auth.dart';
14
import 'package:flutter/material.dart';
25
import 'package:google_sign_in/google_sign_in.dart';
3-
import 'package:firebase_auth/firebase_auth.dart';
6+
47
import 'home.dart';
58
import 'user.dart';
6-
import 'dart:async';
79

810
void main() {
911
runApp(new App());
@@ -18,6 +20,7 @@ class AppState extends State<App> {
1820
Widget currentPage;
1921
GoogleSignIn googleSignIn;
2022
Widget userPage;
23+
2124
@override
2225
void initState() {
2326
super.initState();

google_signin/lib/user.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import 'package:firebase_auth/firebase_auth.dart';
2+
import 'package:flutter/foundation.dart';
13
import 'package:flutter/material.dart';
24
import 'package:meta/meta.dart';
3-
import 'package:flutter/foundation.dart';
4-
import 'package:firebase_auth/firebase_auth.dart';
55

66
class User extends StatelessWidget {
77
User({Key key, @required this.onLogout, @required this.user})

0 commit comments

Comments
 (0)