This file contains 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() { | |
int listLength = 24; | |
int index = 5; | |
int h = (listLength * 66) ~/ 3; | |
int col = index % 3; | |
print('find index: $index'); | |
print('gridHeight: $h'); | |
print('rows : ${h / 66}'); | |
print('column : ${col + 1}'); | |
print('row height: ${((((index - 1) * 66) / 3) + 88) - (col * 22)}'); |
This file contains 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
[ | |
"Ashanti", | |
"Bono", | |
"Bono East", | |
"Brong Ahafo", | |
"Central", | |
"Eastern", | |
"Greater Accra", | |
"North East", | |
"Northern", |
This file contains 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
{ | |
"Ashanti": [ | |
"Adansi Akrofurom District Assembly", | |
"Adansi North District", | |
"Adansi South District", | |
"Afigya Kwabre North District Assembly", | |
"Afigya-Kwabre District", | |
"Ahafo Ano North District", | |
"Ahafo Ano South District", | |
"Ahafo Ano South East District Assembly", |
This file contains 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/cupertino.dart' show showCupertinoModalPopup; | |
import 'package:flutter/material.dart'; | |
class _NumberPad extends StatefulWidget { | |
final int value; | |
final ValueWidgetBuilder<int> headerBuilder; | |
final ValueChanged<int> onChanged; | |
_NumberPad({this.headerBuilder, this.onChanged, this.value}); | |
@override |
This file contains 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
extension PhoneNumberExtension on String { | |
String get toGHPhoneNumber { | |
if (this.length != 10) return this; | |
return '${this.substring(0, 3)} ${this.substring(3, 6)} ${this.substring(6, 10)}'; | |
} | |
} |
This file contains 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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains 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
[ | |
{ | |
"elementType": "geometry", | |
"stylers": [ | |
{ | |
"color": "#e7e9ec" | |
}, | |
{ | |
"visibility": "on" | |
} |
This file contains 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
class Login extends StatefulWidget { | |
@override | |
_LoginState createState() => _LoginState(); | |
} | |
class _LoginState extends State<Login> { | |
InputDecoration inputDecoration({Icon icon, Icon sicon, String hintText}) { | |
return InputDecoration( | |
prefixIcon: icon, |
This file contains 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains 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'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
OlderNewer