Skip to content

Instantly share code, notes, and snippets.

@Moiz-Ali-Moomin
Moiz-Ali-Moomin / mainScreen
Created Aug 5, 2020
Code for flutter App mainScreen
View mainScreen
// import 'package:audio_playere_tet/onlinevideo.dart';
import 'package:flutter/material.dart';
import 'localaudio.dart' as la;
// import 'localvideo.dart' as lv;
import 'onlineaudio.dart' as oa;
import 'onlinevideo.dart' as ov;
class MyTabs extends StatefulWidget {
@override
MyTabsState createState() => new MyTabsState();
View CMD.py
#! /usr/bin/python3
import cgi
import subprocess
import json
print("content-type: text/html")
print()
user_input = cgi.FieldStorage()
View task3flutter-main.dart
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:fluttert3/screens/terminal.dart';
import 'package:fluttert3/screens/login.dart';
import 'package:fluttert3/screens/registration.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
View task3flutter-registration.dart
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
class Registration extends StatefulWidget {
@override
_RegistrationState createState() => _RegistrationState();
}
class _RegistrationState extends State<Registration> {
var authc = FirebaseAuth.instance;
View task3flutter-login.dart
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:modal_progress_hud/modal_progress_hud.dart';
class MyLogin extends StatefulWidget {
@override
_MyLoginState createState() => _MyLoginState();
}
class _MyLoginState extends State<MyLogin> {
View task3flutter-terminal.dart
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
class Terminal extends StatefulWidget {
@override
_TerminalState createState() => _TerminalState();
}
View task4flutter-registration.dart
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:modal_progress_hud/modal_progress_hud.dart';
class SignUpUsingEmail extends StatefulWidget {
@override
_SignUpUsingEmailState createState() => _SignUpUsingEmailState();
}
class _SignUpUsingEmailState extends State<SignUpUsingEmail> {
View task4flutter-login.dart
import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:modal_progress_hud/modal_progress_hud.dart';
class LogIn extends StatefulWidget {
@override
_LogInState createState() => _LogInState();
}
class _LogInState extends State<LogIn> {
View task4-terminal.dart
import 'dart:convert';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:http/http.dart' as http;
class Body extends StatefulWidget {
@override
_BodyState createState() => _BodyState();
}
View task4-homepage.dart
import 'cmd.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {