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
class LoginScreen extends StatefulWidget { | |
const LoginScreen({super.key}); | |
@override | |
State<StatefulWidget> createState() => LoginScreenState(); | |
} | |
class LoginScreenState extends State<LoginScreen> { | |
final TextEditingController _loginEditingController = TextEditingController(); | |
final TextEditingController _passwordEditingController = |
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
class ChatsListScreen extends StatelessWidget { | |
final CubeUser currentUser; | |
const ChatsListScreen(this.currentUser, {super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
automaticallyImplyLeading: false, |
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
class ChatScreen extends StatelessWidget { | |
final CubeUser _cubeUser; | |
final CubeDialog _cubeDialog; | |
const ChatScreen(this._cubeUser, this._cubeDialog, {super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( |
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
import 'dart:async'; | |
import 'package:connectycube_sdk/connectycube_sdk.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:intl/intl.dart'; | |
const String appId = "476"; | |
const String authKey = "PDZjPBzAO8WPfCp"; | |
const String authSecret = "6247kjxXCLRaua6"; |