Skip to content

Instantly share code, notes, and snippets.

View hariprasadms's full-sized avatar
🖐️
Always available for your help

Hari hariprasadms

🖐️
Always available for your help
View GitHub Profile
@hariprasadms
hariprasadms / CustomWidget_table.dart
Created January 22, 2024 16:39
Custom widget for a simple table with no hight constrain
// Automatic FlutterFlow imports
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
class CustomContainer extends StatefulWidget {
@hariprasadms
hariprasadms / MyDropDownWidget.dart
Last active February 5, 2024 15:54
DropDown button form widget
class MyDropDownWidget extends StatefulWidget {
const MyDropDownWidget({Key? key}) : super(key: key);
@override
_MyDropDownWidgetState createState() => _MyDropDownWidgetState();
}
class _MyDropDownWidgetState extends State<MyDropDownWidget> {
List<String> listOfValue = ['1', '2', '3', '4', '5'];
String? _selectedValue;
@hariprasadms
hariprasadms / PopmenuDemo.dart
Created April 14, 2023 10:01
Popupmenu widget FlutterFlow custom widget code
// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
@hariprasadms
hariprasadms / InAppReviewPackage.dart
Last active April 14, 2023 10:04
FlutterFlow custom widget code for In App-review package (Package link - https://pub.dev/packages/in_app_review | Version - in_app_review: ^2.0.6)
// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
@hariprasadms
hariprasadms / package_info_plus_widget.dart
Created June 28, 2022 12:49
PackageInfoPlus - This code is to querying information about an application package.
import 'package:package_info_plus/package_info_plus.dart';
class PackageInfoDemo extends StatefulWidget {
PackageInfoDemo({
Key key,
this.width,
this.height,
}) : super(key: key);
final double width;
@hariprasadms
hariprasadms / flutter_splashscreen.dart
Created June 30, 2021 20:01
A example code to show how splash screen can added to flutter apps
import 'package:fire_table_demo/home_page/landingpage.dart';
import 'package:flutter/material.dart';
import 'package:splash_screen_view/SplashScreenView.dart';
class SplashScreenDemo extends StatefulWidget {
SplashScreenDemo({Key key}) : super(key: key);
@override
_SplashScreenDemoState createState() => _SplashScreenDemoState();
}
@hariprasadms
hariprasadms / flutter_read_jsonfile_from_asset.dart
Last active June 30, 2021 19:48
A example to show how to read json file from asset location.
// This is half written code. This code snippet only to show how to read json file from asset location.
//import line
import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
class QApp extends StatefulWidget {
QApp({Key key}) : super(key: key);
@override
@hariprasadms
hariprasadms / flutter_http_future_example.dart
Created June 30, 2021 15:38
A example flutter code to show how http request and future request can use to load a Rest API data in a mobile app
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@hariprasadms
hariprasadms / flutter_shimmer_example.dart
Created June 30, 2021 14:43
A example flutter code to show how to use shimmer to give data loading user experience in mobile applications
class CustomShimmer extends StatelessWidget {
const CustomShimmer({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
child: Shimmer.fromColors(
baseColor: Colors.grey.shade300,
highlightColor: Colors.blueAccent.shade400,
child: Shimmer.fromColors(