Skip to content

Instantly share code, notes, and snippets.

View Andrious's full-sized avatar
🏠
Working from home

Andrious Solutions Andrious

🏠
Working from home
View GitHub Profile
@Andrious
Andrious / Scaffold_BottomSheet.dart
Created June 6, 2019 02:16
Demonstrating the Drawers and Bottom Sheet for the Scaffold widget
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / Scaffold_BottomAppBar.dart
Created June 6, 2019 15:54
Introduces the BottomAppBar widget
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / Scaffold_FooterButtons.dart
Created June 6, 2019 16:27
Scaffold's persistentFooterButtons parameter example
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / Scaffold_TextFooterButtons.dart
Created June 6, 2019 16:37
A Text field will 'hide' the so-called persistent FooterButtons
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / Scaffold_Nested.dart
Created June 7, 2019 17:58
Multiple Scaffold's. Some with primary: false
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: MyApp()
));
}
class MyApp extends StatelessWidget {
@override
@Andrious
Andrious / Row_widgetError.dart
Last active June 13, 2019 01:59
Row Widget example too long for the screen.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / Row_Column_Samples.dart
Last active June 13, 2019 00:17
Demonstrates the Row and Column Widgets and their alignment properties.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / TextDirection_Example.dart
Created June 13, 2019 04:29
Demonstrates the textDirection property in both the Row and Column widget.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
MyApp({Key key}) : super(key: key);
State createState() => _MyAppState();
}
@Andrious
Andrious / AdMobAdsExample.dart
Last active November 7, 2021 20:23
AdMob Ads Example
import 'package:flutter/material.dart';
import 'dart:io' show Platform;
import 'package:firebase_admob/firebase_admob.dart';
import 'package:ads/ads.dart';
void main() {
runApp(MyApp());
}
@Andrious
Andrious / ExampleOfAds.dart
Last active November 7, 2019 17:54
Another Example of Admob Ads
import 'package:flutter/material.dart';
import 'dart:io' show Platform;
import 'package:firebase_admob/firebase_admob.dart';
import 'package:ads/ads.dart';
void main() {
runApp(MyApp());
}