-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/evrenvural/hackathon-chat…
…-app into ha-feature/firebase
- Loading branch information
Showing
16 changed files
with
487 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
PODS: | ||
- Firebase/Auth (6.27.0): | ||
- Firebase/CoreOnly | ||
- FirebaseAuth (~> 6.6.0) | ||
- Firebase/Core (6.27.0): | ||
- Firebase/CoreOnly | ||
- FirebaseAnalytics (= 6.6.1) | ||
- Firebase/CoreOnly (6.27.0): | ||
- FirebaseCore (= 6.8.0) | ||
- Firebase/Database (6.27.0): | ||
- Firebase/CoreOnly | ||
- FirebaseDatabase (~> 6.3.0) | ||
- firebase_auth (0.0.1): | ||
- Firebase/Auth (~> 6.0) | ||
- Firebase/Core | ||
- Flutter | ||
- firebase_core (0.0.1): | ||
- Firebase/Core | ||
- Flutter | ||
- firebase_core_web (0.1.0): | ||
- Flutter | ||
- firebase_database (0.0.1): | ||
- Firebase/Database | ||
- Flutter | ||
- FirebaseAnalytics (6.6.1): | ||
- FirebaseCore (~> 6.8) | ||
- FirebaseInstallations (~> 1.4) | ||
- GoogleAppMeasurement (= 6.6.1) | ||
- GoogleUtilities/AppDelegateSwizzler (~> 6.0) | ||
- GoogleUtilities/MethodSwizzler (~> 6.0) | ||
- GoogleUtilities/Network (~> 6.0) | ||
- "GoogleUtilities/NSData+zlib (~> 6.0)" | ||
- nanopb (~> 1.30905.0) | ||
- FirebaseAuth (6.6.0): | ||
- FirebaseCore (~> 6.8) | ||
- GoogleUtilities/AppDelegateSwizzler (~> 6.5) | ||
- GoogleUtilities/Environment (~> 6.5) | ||
- GTMSessionFetcher/Core (~> 1.1) | ||
- FirebaseCore (6.8.0): | ||
- FirebaseCoreDiagnostics (~> 1.3) | ||
- GoogleUtilities/Environment (~> 6.5) | ||
- GoogleUtilities/Logger (~> 6.5) | ||
- FirebaseCoreDiagnostics (1.4.0): | ||
- GoogleDataTransportCCTSupport (~> 3.1) | ||
- GoogleUtilities/Environment (~> 6.5) | ||
- GoogleUtilities/Logger (~> 6.5) | ||
- nanopb (~> 1.30905.0) | ||
- FirebaseDatabase (6.3.0): | ||
- FirebaseCore (~> 6.8) | ||
- leveldb-library (~> 1.22) | ||
- FirebaseInstallations (1.4.0): | ||
- FirebaseCore (~> 6.8) | ||
- GoogleUtilities/Environment (~> 6.6) | ||
- GoogleUtilities/UserDefaults (~> 6.6) | ||
- PromisesObjC (~> 1.2) | ||
- Flutter (1.0.0) | ||
- GoogleAppMeasurement (6.6.1): | ||
- GoogleUtilities/AppDelegateSwizzler (~> 6.0) | ||
- GoogleUtilities/MethodSwizzler (~> 6.0) | ||
- GoogleUtilities/Network (~> 6.0) | ||
- "GoogleUtilities/NSData+zlib (~> 6.0)" | ||
- nanopb (~> 1.30905.0) | ||
- GoogleDataTransport (6.2.1) | ||
- GoogleDataTransportCCTSupport (3.2.0): | ||
- GoogleDataTransport (~> 6.1) | ||
- nanopb (~> 1.30905.0) | ||
- GoogleUtilities/AppDelegateSwizzler (6.6.0): | ||
- GoogleUtilities/Environment | ||
- GoogleUtilities/Logger | ||
- GoogleUtilities/Network | ||
- GoogleUtilities/Environment (6.6.0): | ||
- PromisesObjC (~> 1.2) | ||
- GoogleUtilities/Logger (6.6.0): | ||
- GoogleUtilities/Environment | ||
- GoogleUtilities/MethodSwizzler (6.6.0): | ||
- GoogleUtilities/Logger | ||
- GoogleUtilities/Network (6.6.0): | ||
- GoogleUtilities/Logger | ||
- "GoogleUtilities/NSData+zlib" | ||
- GoogleUtilities/Reachability | ||
- "GoogleUtilities/NSData+zlib (6.6.0)" | ||
- GoogleUtilities/Reachability (6.6.0): | ||
- GoogleUtilities/Logger | ||
- GoogleUtilities/UserDefaults (6.6.0): | ||
- GoogleUtilities/Logger | ||
- GTMSessionFetcher/Core (1.4.0) | ||
- leveldb-library (1.22) | ||
- nanopb (1.30905.0): | ||
- nanopb/decode (= 1.30905.0) | ||
- nanopb/encode (= 1.30905.0) | ||
- nanopb/decode (1.30905.0) | ||
- nanopb/encode (1.30905.0) | ||
- PromisesObjC (1.2.9) | ||
|
||
DEPENDENCIES: | ||
- firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) | ||
- firebase_core (from `.symlinks/plugins/firebase_core/ios`) | ||
- firebase_core_web (from `.symlinks/plugins/firebase_core_web/ios`) | ||
- firebase_database (from `.symlinks/plugins/firebase_database/ios`) | ||
- Flutter (from `Flutter`) | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Firebase | ||
- FirebaseAnalytics | ||
- FirebaseAuth | ||
- FirebaseCore | ||
- FirebaseCoreDiagnostics | ||
- FirebaseDatabase | ||
- FirebaseInstallations | ||
- GoogleAppMeasurement | ||
- GoogleDataTransport | ||
- GoogleDataTransportCCTSupport | ||
- GoogleUtilities | ||
- GTMSessionFetcher | ||
- leveldb-library | ||
- nanopb | ||
- PromisesObjC | ||
|
||
EXTERNAL SOURCES: | ||
firebase_auth: | ||
:path: ".symlinks/plugins/firebase_auth/ios" | ||
firebase_core: | ||
:path: ".symlinks/plugins/firebase_core/ios" | ||
firebase_core_web: | ||
:path: ".symlinks/plugins/firebase_core_web/ios" | ||
firebase_database: | ||
:path: ".symlinks/plugins/firebase_database/ios" | ||
Flutter: | ||
:path: Flutter | ||
|
||
SPEC CHECKSUMS: | ||
Firebase: fc4cbf6f1592636431821ef9a3c557e4dfd9f268 | ||
firebase_auth: d99b993c1405096e66c58211b1cd956c23eed1c5 | ||
firebase_core: 335c02abd48672b7c83c683df833d0488a72e73e | ||
firebase_core_web: d501d8b946b60c8af265428ce483b0fff5ad52d1 | ||
firebase_database: 88085c38a41ad0b5c3c611ede7205831a2ece844 | ||
FirebaseAnalytics: 0ea640473474f036cabbc2576e20c2d63671c92f | ||
FirebaseAuth: b85c064e0ac60f82486728d50a4803f235687302 | ||
FirebaseCore: feda061cb1ee6d8ad4824f4a4a8ffbcfe284f595 | ||
FirebaseCoreDiagnostics: 4505e4d4009b1d93f605088ee7d7764d5f0d1c84 | ||
FirebaseDatabase: 3d02ffa794ec174853c086cf87cf2dc79bd6da49 | ||
FirebaseInstallations: 293f567159b6d66d1c990f13bb868066096c94ec | ||
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec | ||
GoogleAppMeasurement: 2fd5c5a56c069db635c8e7b92d4809a9591d0a69 | ||
GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020 | ||
GoogleDataTransportCCTSupport: 489c1265d2c85b68187a83a911913d190012158d | ||
GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1 | ||
GTMSessionFetcher: 6f5c8abbab8a9bce4bb3f057e317728ec6182b10 | ||
leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7 | ||
nanopb: c43f40fadfe79e8b8db116583945847910cbabc9 | ||
PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75 | ||
|
||
PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a | ||
|
||
COCOAPODS: 1.8.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class MessageList extends StatelessWidget { | ||
const MessageList({Key key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
child: ListView.builder( | ||
itemCount: 10, | ||
itemBuilder: (context, index) { | ||
return buildMessageView(); | ||
}, | ||
), | ||
); | ||
} | ||
|
||
Container buildMessageView() { | ||
return Container( | ||
height: 50, | ||
margin: EdgeInsets.all(5), | ||
decoration: BoxDecoration( | ||
color: Colors.grey.withOpacity(0.6), | ||
borderRadius: BorderRadius.circular(15), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class MessageSender extends StatefulWidget { | ||
final Function(String text) onSend; | ||
|
||
const MessageSender({Key key, this.onSend}) : super(key: key); | ||
|
||
@override | ||
_MessageSenderState createState() => _MessageSenderState(); | ||
} | ||
|
||
class _MessageSenderState extends State<MessageSender> { | ||
final myController = TextEditingController(); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
padding: EdgeInsets.all(5), | ||
child: TextField( | ||
controller: myController, | ||
decoration: buildInputDecoration(), | ||
), | ||
); | ||
} | ||
|
||
InputDecoration buildInputDecoration() { | ||
return InputDecoration( | ||
hintText: "Bir mesaj yazın.", | ||
contentPadding: EdgeInsets.only(left: 20), | ||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(15)), | ||
suffixIcon: InkWell( | ||
onTap: () { | ||
final text = myController.text; | ||
myController.clear(); | ||
widget.onSend?.call(text); | ||
}, | ||
child: Icon(Icons.send), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.