Skip to content

Instantly share code, notes, and snippets.

View akmak1103's full-sized avatar
🏠
Working from home

Akshay Makkar akmak1103

🏠
Working from home
View GitHub Profile
@akmak1103
akmak1103 / main.dart
Created June 26, 2020 01:39
YouTube Clone built using Flutter
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: 'YouTube Clone',
debugShowCheckedModeBanner: false,
home: HomeScreen(),
));
}
@akmak1103
akmak1103 / main.dart
Last active June 12, 2020 09:54
Creating a custom stream
import 'dart:async';
class DataCreator {
final _controller = StreamController<String>();
int _count = 1;
DataCreator() {
Timer.periodic(Duration(seconds: 1), (callBack) {
_controller.sink.add('String $_count');
_count++;
});