This file contains hidden or 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
void main() { | |
final id1 = getVideoIdFromUrl( | |
"https://www.youtube.com/watch?v=L2XfHREa0j0", | |
); | |
final id2 = getVideoIdFromUrl( | |
"https://youtu.be/wCRw3hgIZv4?si=nMn_fyLz-JFnFypU", | |
); | |
print(id1); |
This file contains hidden or 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
Term | Description | |
---|---|---|
Entrepreneur | A person who starts and runs their own business taking on financial risks in the hope of making a profit. | |
Startup | A newly established business that is still in the early stages of development and growth. | |
Business Idea | A concept for a new product or service that has the potential to be successful in the market. | |
Business Model | A plan that outlines how a business will create & deliver & capture value for its customers. | |
Minimum Viable Product (MVP) | A basic version of a product or service that is used to gather feedback from potential customers before launching a full-scale version. | |
Pitch Deck | A presentation used by entrepreneurs to raise funding from investors. | |
Funding | The money that a business needs to start and grow. | |
Venture Capital (VC) | A type of investment that provides funding to startups and early-stage companies with high growth potential. | |
Angel Investor | An individual who invests in startups and early-stage companies. |
This file contains hidden or 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:io'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:laravel_exception/laravel_exception.dart'; | |
import 'error_response.dart'; | |
import 'constants.dart'; | |
import 'enums.dart'; |
This file contains hidden or 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:convert'; | |
import 'package:get_it/get_it.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
abstract class Prefs { | |
static final serviceLocator = GetIt.instance; | |
static Future<void> initPrefs() async { | |
final serviceLocator = GetIt.instance; | |
SharedPreferences sharedPref = await SharedPreferences.getInstance(); | |
serviceLocator.registerSingleton<SharedPreferences>(sharedPref); |
This file contains hidden or 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'; | |
class LoginScreen extends StatefulWidget { | |
const LoginScreen({super.key}); | |
@override | |
State<LoginScreen> createState() => _LoginScreenState(); | |
} | |
class _LoginScreenState extends State<LoginScreen> { |
This file contains hidden or 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
class MyHomePage extends StatefulWidget { | |
const MyHomePage({Key? key}) : super(key: key); | |
@override |
This file contains hidden or 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
Future<void> openOffersPage(RemoteMessage? message) async { | |
if (message != null) { | |
if (message.data['type'] == 'offers') { | |
Navigator.push( | |
key.currentContext!, | |
MaterialPageRoute( | |
builder: (_) => HotOffers(), | |
), | |
); | |
} |
This file contains hidden or 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
Widget build(BuildContext context) { | |
UserDetails _user = widget.user; | |
double width = MediaQuery.of(context).size.width; | |
double height = MediaQuery.of(context).size.height; | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Profile Page"), | |
centerTitle: true, | |
), | |
body: ListView( |
This file contains hidden or 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
package com.example.app | |
import androidx.annotation.NonNull | |
import io.flutter.embedding.android.FlutterActivity | |
import io.flutter.embedding.engine.FlutterEngine | |
import io.flutter.plugin.common.MethodChannel | |
import android.content.Context | |
import android.content.ContextWrapper | |
import android.content.Intent | |
import android.content.IntentFilter |
NewerOlder