This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "name": "Ghotuo", "code": "aaa" }, | |
| { "name": "Alumu-Tesu", "code": "aab" }, | |
| { "name": "Ari", "code": "aac" }, | |
| { "name": "Amal", "code": "aad" }, | |
| { "name": "Arbëreshë", "code": "aae" }, | |
| { "name": "Aranadan", "code": "aaf" }, | |
| { "name": "Ambrak", "code": "aag" }, | |
| { "name": "Abu'", "code": "aah" }, | |
| { "name": "Arifama-Miniafia", "code": "aai" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| final indices = [0,1,2,3,4,5,6,7,8,9,10,11,12]; | |
| for (final index in indices) { | |
| final modulo = (index % 4).floor(); | |
| String color = "unknown"; | |
| switch(modulo) { | |
| case 1: | |
| color = "yellow"; | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:lighthouse/components/fragments/spacers/lighthouse_sized_box.dart'; | |
| import 'package:lighthouse/components/layout/grids/app_grid.dart'; | |
| import 'package:lighthouse/components/typography/lighthouse_text.dart'; | |
| import 'package:lighthouse/styles/colors.dart'; | |
| import 'package:lighthouse/utils/dimensions.dart'; | |
| enum ChildType { Default, PlayList, ListTile, Grid } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/widgets.dart' | |
| show BuildContext, MediaQuery, MediaQueryData, EdgeInsets, RenderBox, Offset; | |
| class _AppDimension { | |
| MediaQueryData _queryData; | |
| _AppDimension(BuildContext context) { | |
| _queryData = MediaQuery.of(context); | |
| } | |
| double get topInset { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class DFDimension { | |
| MediaQueryData _queryData; | |
| DFDimension(BuildContext context) { | |
| _queryData = MediaQuery.of(context); | |
| } | |
| double get width { | |
| return _queryData.size.width; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/widgets.dart' show BuildContext, MediaQuery; | |
| class FontSizer { | |
| num _shortestSide; | |
| FontSizer(BuildContext context) { | |
| _shortestSide = MediaQuery.of(context).size.shortestSide; | |
| } | |
| num sp(double percentage) { | |
| return ((_shortestSide) * (percentage / 1000)).ceil().toDouble(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| class SliverColoredBox extends SingleChildRenderObjectWidget { | |
| const SliverColoredBox({ | |
| Key key, | |
| @required this.color, | |
| @required Widget sliver, | |
| }) : super(key: key, child: sliver); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:isolate'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |