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:async'; | |
| import 'dart:io'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:webview_flutter/webview_flutter.dart'; | |
| class RecipeView extends StatefulWidget { | |
| final String postUrl; | |
| RecipeView({@required this.postUrl}); |
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:firebase_auth/firebase_auth.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| class UserProvider with ChangeNotifier { | |
| User _user; | |
| AuthMethods _authMethods = AuthMethods(); | |
| User get getUser => _user; |
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
| # This is a basic workflow to help you get started with Actions | |
| name: Build, Release app to Github Pages and Firebase Hosting | |
| # name: Test, Build and Release apk | |
| # Controls when the action will run. Triggers the workflow on push or pull request | |
| # events but only for the master branch | |
| on: | |
| push: | |
| branches: | |
| - master |
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 'dart:typed_data'; | |
| import 'dart:ui'; | |
| import 'package:cached_network_image/cached_network_image.dart'; | |
| import 'package:dio/dio.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:image_gallery_saver/image_gallery_saver.dart'; | |
| import 'package:permission_handler/permission_handler.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:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:wallpaper/data/data.dart'; | |
| import 'package:wallpaper/models/photos_model.dart'; | |
| import 'package:wallpaper/widget/widget.dart'; | |
| class CategorieScreen extends StatefulWidget { | |
| final String categorie; |
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
| getSearchWallpaper(String searchQuery) async { | |
| await http.get( | |
| "https://api.pexels.com/v1/search?query=$searchQuery&per_page=30&page=1", | |
| headers: {"Authorization": apiKEY}).then((value) { | |
| //print(value.body); | |
| Map<String, dynamic> jsonData = jsonDecode(value.body); | |
| jsonData["photos"].forEach((element) { | |
| //print(element); | |
| PhotosModel photosModel = new PhotosModel(); |
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 brandName() { | |
| return Row( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| mainAxisSize : MainAxisSize.min | |
| children: <Widget>[ | |
| Text( | |
| "Wallpaper", | |
| style: TextStyle(color: Colors.black87, fontFamily: 'Overpass'), | |
| ), | |
| Text( |
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 wallpapersList({List<WallpaperModel> wallpapers, context}){ | |
| return Container( | |
| child: GridView.count( | |
| shrinkWrap: true, | |
| padding: EdgeInsets.symmetric(horizontal: 16), | |
| physics: ClampingScrollPhysics(), | |
| crossAxisCount: 2, | |
| childAspectRatio: 0.6, | |
| mainAxisSpacing: 6.0, | |
| crossAxisSpacing: 6.0, |
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:wallpaper/models/categorie_model.dart'; | |
| String apiKEY = "[API_KEY]"; | |
| List<CategorieModel> getCategories() { | |
| List<CategorieModel> categories = new List(); | |
| CategorieModel categorieModel = new CategorieModel(); | |
| // | |
| categorieModel.imgUrl = |