Skip to content

Instantly share code, notes, and snippets.

View rushabhshah065's full-sized avatar
💭
Working Mode is on..

Rushabh Shah rushabhshah065

💭
Working Mode is on..
View GitHub Profile
@rushabhshah065
rushabhshah065 / main.dart
Created March 29, 2020 18:31
Flutter Splash Screen Customization main.dart file.
import 'package:flutter/material.dart';
import 'package:ipomarket/helper/Style.dart';
import 'package:ipomarket/ui/SplashScreen.dart';
void main() => runApp(MyRootApp());
class MyRootApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@rushabhshah065
rushabhshah065 / SplashScreen.dart
Created March 29, 2020 17:54
Flutter Splash Screen Widget for customize splash screen.
import 'dart:async';
import 'package:flutter/material.dart';
class SplashScreen extends StatefulWidget {
final Color backgroundColor = Colors.white;
final TextStyle styleTextUnderTheLoader = TextStyle(
fontSize: 18.0, fontWeight: FontWeight.bold, color: Colors.black);
@override
_SplashScreenState createState() => _SplashScreenState();
@rushabhshah065
rushabhshah065 / build.gradle
Created June 12, 2019 09:18
All possible lint combination.
android {
..
lintOptions {
// set to true to turn off analysis progress reporting by lint
quiet true
// if true, stop the gradle build if errors are found
abortOnError false
// if true, only report errors
ignoreWarnings true
// if true, emit full/absolute paths to files with errors (true by default)
@rushabhshah065
rushabhshah065 / build.gradle
Last active June 12, 2019 09:17
Add task for forcefully apply lint before build.
android {
..
applicationVariants.all {
def lintTask = tasks["lint${name.capitalize()}"]
assembleProvider.get().dependsOn.add(lintTask)
}
}