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
| ref: refs/heads/main |
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_blogger_app/data/models.dart'; | |
| import 'package:flutter_blogger_app/utils/constans.dart'; | |
| import 'package:http/http.dart' as http; | |
| class BloggerService { | |
| static Future<BloggerModel> get posts async { | |
| var request = http.Request( | |
| 'GET', | |
| Uri.parse( | |
| 'https://www.googleapis.com/blogger/v3/blogs/${Constants.blogId}/posts?key=${Constants.apiKey}')); |
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
| http.post( | |
| 'https://pastebin.com/api/api_post.php', | |
| headers: {"Content-Type": "application/x-www-form-urlencoded"}, | |
| body:"api_dev_key=<PASTEBIN_API_KEY>&api_paste_code=<DATA_YOU_WANT_TO_PASTE>&api_option=paste" | |
| ) | |
| .then((value) => print(value.body)); |
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:bubble_bottom_bar/bubble_bottom_bar.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_svg/flutter_svg.dart'; | |
| class Home extends StatefulWidget { | |
| @override | |
| _HomeState createState() => _HomeState(); | |
| } | |
| class _HomeState extends State<Home> { |
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
| class SABT extends StatefulWidget { | |
| final Widget child; | |
| const SABT({ | |
| Key key, | |
| @required this.child, | |
| }) : super(key: key); | |
| @override | |
| _SABTState createState() { | |
| return new _SABTState(); | |
| } |
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'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |