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
Scaffold( | |
appBar: AppBar( | |
title: const Text('Jira Board'), | |
), | |
body: Column( | |
children: [ | |
Expanded( | |
child: Row( | |
children: [ | |
Expanded( |
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(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const String _title = 'Flutter Code Sample'; | |
@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
BlockQuote( | |
child: | |
Text( | |
'Lorem ipsum dolor sit amet, is the best place to hide a text.', | |
textAlign: TextAlign.justify, | |
), | |
), |
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
BlockQuote( | |
outerPadding: const EdgeInsets.all(20), | |
blockColor: Colors.blueAccent, | |
blockWidth: 5, | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
children: [ | |
Text( | |
'Lorem ipsum dolor sit amet, is the best place to hide a text.', | |
textAlign: TextAlign.justify, |
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
<?php | |
require_once __DIR__ . '/response.php'; | |
require_once __DIR__ . '/db.php'; | |
class CRUD | |
{ | |
private $db; | |
public function __construct() |
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
<?php | |
function err($err) | |
{ | |
$res['state'] = false; | |
$res['err'] = $err; | |
echo json_encode($res); | |
die(); | |
} |
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:permission_handler/permission_handler.dart'; | |
() async { | |
PermissionStatus p = await PermissionHandler() | |
.checkPermissionStatus(PermissionGroup.contacts); | |
if (p == PermissionStatus.disabled) { | |
// permission got already / success | |
return true; | |
} |
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'; | |
import 'package:intl/intl.dart'; | |
Future<DateTime> fetchDate(BuildContext context, | |
{DateTime initialDate, DateTime last}) async { | |
DateTime t = await showDatePicker( | |
context: context, | |
firstDate: DateTime(DateTime.now().year - 1), | |
initialDate: initialDate ?? DateTime.now(), | |
lastDate: last ?? DateTime(DateTime.now().year + 2), |
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:convert'; | |
import 'package:http/http.dart' as http; | |
const String _host = "https://<....>"; | |
class MyRequest { | |
final String url; | |
final Map<String, String> headers = {'Authorization': 'Bearer token'}; |
NewerOlder