Monthly Archives: September 2018

Simple Interview Question and Answer – 1

By | September 28, 2018

Question John works at a clothing store. He has a large pile of socks that he must pair by color for sale. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. For example, there are socks with colors . There is one pair of color… Read More »

SQlite Database Operations in Flutter

By | September 27, 2018

SQFlite is a Flutter library for doing local Database Operations. You can download it from here. To Integrate SQFlite library in your project In your flutter project add the dependency: You can download the sample project from here. Here is a sample DB Utility file. DBHelper.dart

How to do Unit Test of functions and Widgets in Flutter?

By | September 24, 2018

Lets see how we can test Flutter Apps. It would be easy if we continue from the previous example…   Start unit Testing We will create a test file named ‘widget_test.dart’ inside the ‘test’ folder. To test Widgets, we will use the ‘testWidgets’ function. Lets see how it will look like… The test function in MyHomePage will look… Read More »