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 android.Manifest.permission.ACCESS_COARSE_LOCATION | |
import android.Manifest.permission.ACCESS_FINE_LOCATION | |
import android.annotation.SuppressLint | |
import android.arch.lifecycle.Lifecycle | |
import android.arch.lifecycle.LifecycleObserver | |
import android.arch.lifecycle.OnLifecycleEvent | |
import android.content.Context | |
import android.location.Criteria | |
import android.location.Location |
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:cloud_firestore/cloud_firestore.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:foodgram/firebase_auth.dart'; | |
import 'package:foodgram/preview_post.dart'; | |
import 'package:foodgram/random_asset.dart'; | |
import 'package:foodgram/user.dart'; | |
import 'package:image_picker/image_picker.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 'package:flutter/material.dart'; | |
import 'dart:math' as Math; | |
class AnimationTest extends StatefulWidget { | |
@override | |
_AnimationTestState createState() => _AnimationTestState(); | |
} | |
class _AnimationTestState extends State<AnimationTest> | |
with SingleTickerProviderStateMixin { |
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'; | |
import 'dart:math' as Math; | |
class AnimationTest extends StatefulWidget { | |
@override | |
_AnimationTestState createState() => _AnimationTestState(); | |
} | |
class _AnimationTestState extends State<AnimationTest> | |
with SingleTickerProviderStateMixin { |
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'; | |
import 'dart:math' as Math ; | |
class PainterPage extends StatefulWidget { | |
@override | |
_PainterPageState createState() => _PainterPageState(); | |
} | |
class _PainterPageState extends State<PainterPage> with SingleTickerProviderStateMixin{ |
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'; | |
import 'dart:math' as Math; | |
class PainterPage extends StatefulWidget { | |
@override | |
_PainterPageState createState() => _PainterPageState(); | |
} | |
class _PainterPageState extends State<PainterPage> | |
with SingleTickerProviderStateMixin { |
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:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'dart:math'; | |
import 'random_numbers_generator.dart'; | |
import 'dart:ui' as ui; | |
class FractalView extends StatefulWidget { | |
@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
import 'dart:math'; | |
/// generate coordnates for cercomfrance | |
void main(){ | |
var radius = 100.0 ; | |
var centerLat = 25.756037 ; | |
var centerLon = 55.969354 ; |
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:http/http.dart' as http; | |
import 'dart:convert'; | |
void main() async { | |
var url = 'http://localhost:3000/'; | |
var body = jsonEncode({ | |
'name' : 'Abood', | |
'Color' : 'blue' | |
}); |
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
app.post('/', async (req,res)=>{ | |
try { | |
const result = await app.dbUtil.db.collection('users').insertOne(req.body) | |
res.json(result) | |
} catch(error){ |
OlderNewer