// list
return ListView.separated(
physics: const AlwaysScrollableScrollPhysics(),
itemCount: friends.length,
itemBuilder: (BuildContext context, int index) {
final Friend item = friends[index];
return _buildItem(context, index, item, provider);
},
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'; | |
/// How to use: | |
/// final WOverlay _overlay = WOverlay(); | |
/// @override | |
/// Widget build(BuildContext context) { | |
/// return CompositedTransformTarget( | |
/// link: _overlay.layerLink, | |
/// child: child, | |
/// ); |
pubspec.yaml
sqflite: ^1.3.2+1
lib/services/local/migrate/migrate.dart
import 'package:sqflite/sqflite.dart';
abstract class Migrate {
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:math' as math show sin, pi, sqrt; | |
import 'package:flutter/animation.dart'; | |
import 'package:flutter/material.dart'; | |
class CirclePainter extends CustomPainter { | |
CirclePainter( | |
this._animation, { | |
@required this.color, | |
}) : super(repaint: _animation); |
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:intl/intl.dart'; | |
// const String dateString = '10/12/2020'; | |
// final DateTime dateTimeObj = DateFormat('dd/MM/yyyy').parse(dateString); | |
// print('dateTimeObj $dateTimeObj'); | |
// | |
// final String dateTimeFormatString = DateFormat('yyyy-MM-dd').format(dateTimeObj); | |
// print('dateTimeFormatString $dateTimeFormatString'); | |
// Today 11:08 PM | |
// => 'Today ${DateFormat('h:mm a').format(toDay)}' |