Skip to content

Instantly share code, notes, and snippets.

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 =
class ChatsListScreen extends StatelessWidget {
final CubeUser currentUser;
const ChatsListScreen(this.currentUser, {super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
@TasyaShark
TasyaShark / ChatScreen.dart
Last active May 13, 2024 11:58
ChatScreen
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(
@TasyaShark
TasyaShark / main.dart
Created May 13, 2024 11:55
main.dart
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";