Open in app

Sign In

Write

Sign In

Hritika Agarwal
Hritika Agarwal

23 Followers

Home

About

Nov 1, 2020

How to increase/decrease the size of Raised button

Raised buttons have a minimum size of 88.0 by 36.0 To increase/decrease the size of raised button , wrap the raised button in a container or in sized box and give them the desired height and width. For Example-> SizedBox( width: 100, // specific value height: 40.0, // specific value child: RaisedButton( onPressed: () {}, child: Text("Hello Everyone"), ), ), or Container( width: 100, height: 40.0, child: RaisedButton( onPressed: () {}, child: Text("Hello Everyone"),

Flutter

1 min read

Flutter

1 min read


Nov 1, 2020

SingleChildScrollView is not working in Flutter. What to do?

Replace body: SingleChildScrollView( child: Container(), ), By body: ScrollConfiguration( behavior: ScrollBehavior() ..buildViewportChrome(context, null, AxisDirection.down), child: SingleChildScrollView( child: Container( height: MediaQuery.of(context).size.height, ), ), ), Make sure , you are using ScrollConfiguration in a stateful widget. And you are Done!

Flutter

1 min read

Flutter

1 min read


Oct 31, 2020

pickimage’ is deprecated and shouldn’t be used. use imagepicker.getimage() method instead

Declare your getImage method-> PickedFile imageFile; Future getImage(int type) async { PickedFile pickedImage = await ImagePicker().getImage( source: type == 1 ? ImageSource.camera : ImageSource.gallery, imageQuality: 50); return pickedImage; } Display your Picked image in the container -> Expanded( child: Container( decoration: BoxDecoration( image: DecorationImage( image: imageFile == null ? AssetImage('assets/illustrations/name_contact.png') : FileImage(File(imageFile.path)), fit: BoxFit.cover)), ), ),

Flutter

1 min read

Flutter

1 min read


Oct 30, 2020

Incorrect use of ParentData Widget. Expanded widget Must be Placed Inside the flex widget.

Expanded should only be descendant of a column, row or flex. So, if anywhere expanded is Present in other than column , row or flex widget, try removing those widget. For Example → Simply Using the Expanded wiget in the Conatiner can cause Error. Container( child: Text( "Hello", style: TextStyle(fontWeight: FontWeight.bold), ), child: Expanded( child: Text("HEY") ),

Flutter

1 min read

Flutter

1 min read


Oct 24, 2020

Error: Error when reading ‘bin/main.dart’: The system cannot find the path specified.

Delete .vscode folder inside your project Unplug your device Plug it again Debug and Run If you are working in Android Studio , you can even try shifting to Visual studio. Many a times , it will be eliminated there.

Flutter

1 min read

Flutter

1 min read


Oct 24, 2020

How to enable dark mode in Android Studio

File>Settings>Editor>Color Scheme. Now click on the drop-down menu of Scheme and choose dracula

Android Studio

1 min read

How to enable dark mode in Android Studio
How to enable dark mode in Android Studio
Android Studio

1 min read


Sep 1, 2020

‘where’ is not recognized as an internal or external command, operable program or batch file. Error: Unable to find git in your PATH.

[Installation Problem in flutter] Make sure , you have downloaded the following-: flutter git Next , is to add the following in user Path Variables [ Environment Variables<Users<Path ] C:\src\flutter\bin Now, add them in System Path Variables. [Environment Variables< System< Path] C:\Program Files\Git\cmd C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Windows\System32 Congratulations! , Your Setup is Ready.

Flutter

1 min read

Flutter

1 min read


Aug 30, 2020

Classes in Java

[S1E4] — Introduction to Classes All programs require one or more classes that act as a model for the world. For example, a program to track student test scores might have Student, Course, and Grade classes. Our real-world concerns, students and their grades, are inside the program as classes. We represent each student as an…

Java

9 min read

Classes in Java
Classes in Java
Java

9 min read


Aug 30, 2020

Manipulating Variables in Java

[S1E3] — Introduction Let’s say we are writing a program that represents a user’s bank account. With variables, we know how to store a balance! We’d use a double, the primitive type that can hold big decimal numbers. But how would we deposit and withdraw from the account? Java has built-in math operations…

Java

7 min read

Java

7 min read


Aug 30, 2020

Java Variables

[S1E2] — Introduction Let’s say we need a program that connects a user with new jobs. We need the user’s name, their salary, and their employment status. All of these pieces of information are stored in our program. We store information in variables, named locations in memory. Naming a piece of information allows…

Java

7 min read

Java Variables
Java Variables
Java

7 min read

Hritika Agarwal

Hritika Agarwal

23 Followers
Following
  • Sanidhya Agrawal

    Sanidhya Agrawal

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech