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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
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
// Challenge 2: Balance the Parentheses | |
void main() { | |
// String ip = 'h((e))llo(world)()'; | |
String ip = '(hello world'; | |
List l = ip.split(''); | |
Stack stack = Stack(inputList: l); | |
int listLen = l.length; |
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
// Create a function that prints the contents of a list in reverse order | |
void main() { | |
List l = ['a','b','c','d']; | |
Stack stack = Stack( | |
inputList: l | |
); | |
int listLen = l.length; | |
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:isolate'; | |
import 'package:async/async.dart' show StreamQueue; | |
import 'package:flutter/foundation.dart' show debugPrint, protected; | |
const String outSiderSP = 'outsiderSP'; | |
class IsolateManager { | |
factory IsolateManager() { | |
return instance; |
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 'package:flutter/material.dart'; | |
import 'dart:developer' as devtools show log; | |
import 'dart:io'; | |
import 'package:meta/meta.dart'; | |
import 'dart:convert'; | |
extension Log on Object { | |
void log() => devtools.log(toString()); | |
} |
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 'package:flutter/material.dart'; | |
import 'dart:developer' as devtools show log; | |
extension Log on Object { | |
void log() => devtools.log(toString()); | |
} | |
abstract class Animal{ | |
const Animal(); | |
} |
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 'package:flutter/material.dart'; | |
import 'dart:developer' as devtools show log; | |
extension Log on Object { | |
void log() => devtools.log(toString()); | |
} | |
enum Type { cat, dog } | |
abstract class CanRun { |
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 'package:contacts_app/screens/contact_details_screen.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:hive/hive.dart'; | |
import 'package:hive_flutter/hive_flutter.dart'; | |
import 'package:provider/provider.dart'; | |
import './hive/contacts.dart'; | |
import 'provider/db_provider.dart'; | |
class SearchWidget extends SearchDelegate<Contacts> { |
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
/// Credits without which this wouldn't have been possible : Coding With Indy - https://www.youtube.com/watch?v=1VyDHNXFFyg | |
import 'dart:async'; | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); |
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:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: TempScreen(), | |
), | |
); | |
} |
NewerOlder