Posts Tagged: flutter

Flutter Programming
Flutter Project: Insecure URL is not working in Android / IOS
April 14, 2021
0
, , , ,
I am developing a flutter project called ZTutor. While testing in Android my login was not working, my app was sending data to localhost, which is my local pc. My localhost url was http://192.168.0.105/ztutor/login.php but that url was not receiving any request from the App. So, I changed in the android/app/src/main/AndroidManifest.xml: I have added this […]
Flutter Network
flutter – android – http.get never works in deployed device / release mode
April 8, 2021
0
, ,
Recently while working & testing on my own app Zbotics (That assist with Robot Voice when to do what to my family member) which has been made by flutter 2, I have found that App loads data using http.get properly in IOS Simulator & real device but it was not working in Android Device at […]
Coding Flutter Model
Flutter::Models
November 26, 2019
0
,
Sample Model class User { final int id; final String name; final String imageUrl; User({ this.id, this.name, this.imageUrl, }); } class Message { final User sender; final String time; // Would usually be type DateTime or Firebase Timestamp in production apps final String text; final bool isLiked; final bool unread; Message({ this.sender, this.time, this.text, this.isLiked, […]
Flutter Navigation / Route
Flutter: Page Controller
November 24, 2019
0
,
lib/main.dart import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; void main() { runApp(MaterialApp( home: MyPageView(), )); } class MyPageView extends StatefulWidget { MyPageView({Key key}) : super(key: key); _MyPageViewState createState() => _MyPageViewState(); } class _MyPageViewState extends State { PageController _pageController; @override void initState() { super.initState(); _pageController = PageController(); } @override void dispose() { _pageController.dispose(); super.dispose(); } @override Widget […]
Coding Flutter Flutter Layout Sample
Flutter:: Layout Sample (Row + Column)
November 19, 2019
0
, , ,
lib/main.dart import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart' show debugPaintSizeEnabled; void main() { debugPaintSizeEnabled = true; // Remove to suppress visual layout runApp(RowColumnApp()); } class RowColumnApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter layout demo', home: Scaffold( appBar: AppBar( title: Text('Flutter layout demo'), ), // Change to buildColumn() for the other column example […]
Coding Flutter
Flutter: Youtube like App Bar
November 19, 2019
0
,
pubspec.yaml flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true assets: - assets/images/youtube_icon.png - assets/images/youtube_action1.png - assets/images/youtube_action2.png - assets/images/youtube_action3.png - assets/images/profile_pic.png lib/main.dart import 'package:flutter/material.dart'; void main() { runApp(YoutubeAppbar()); } class YoutubeAppbar extends […]
Coding Flutter
Flutter: Facebook Like App Bar
November 19, 2019
0
,
pubspec.yaml flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true assets: - assets/images/facebook_icon.png - assets/images/facebook_msg.png - assets/images/facebook_search.png lib/main.dart import 'package:flutter/material.dart'; void main() { runApp(FacebookAppbar()); } class FacebookAppbar extends StatelessWidget { @override Widget […]
Coding Flutter
Flutter: Basic App Bar
November 19, 2019
0
,
lib/main.dart import 'package:flutter/material.dart'; void main() { runApp(BasicAppbar()); } class BasicAppbar extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( // backgroundColor: Colors.white, leading: Padding( padding: EdgeInsets.only(left: 12), child: IconButton( icon: Icon(Icons.list), onPressed: () { print('Click leading'); }, ), ), title: Row( mainAxisAlignment: MainAxisAlignment.center, children:[ Text('Basic AppBar'), ] ), actions: [ […]
Coding Flutter
Flutter: Flex
November 19, 2019
0
, , ,
Code pubspec.yaml flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true assets: - images/pic1.jpg - images/pic2.jpg - images/pic3.jpg lib/main.dart import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart' show debugPaintSizeEnabled; void main() { debugPaintSizeEnabled = false; // […]