Skip to content

Instantly share code, notes, and snippets.

Avatar
😁

Md. Yeasin Sheikh yeasin50

😁
View GitHub Profile
@yeasin50
yeasin50 / main.dart
Created Sep 21, 2021
priceTag using CustomPainter
View main.dart
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@yeasin50
yeasin50 / main.dart
Created Sep 16, 2021
customPaint vs BoxPaint
View main.dart
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MaterialApp(
home: MyApp(),
));
}
@yeasin50
yeasin50 / cornerRectPaint.dart
Created Sep 15, 2021
CustomPainter corner As decoration
View cornerRectPaint.dart
class CustomDecorationPainter extends CustomPainter {
final double padding;
final double frameSFactor;
CustomDecorationPainter({
required this.padding,
required this.frameSFactor,
});
@override
View main.dart
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@yeasin50
yeasin50 / main.dart
Created Sep 8, 2021
ListTile/Card with Row<Column>
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
View main.dart
void main() {
final List<Map<String, Object>> perguntas = [
{
'texto': 'Qual é a sua cor favorita?',
'respostas': ['Preto', 'Vermelho', 'Verde', 'Branco'],
},
{
'texto': 'Qual é o seu animal favorito?',
'respostas': ['Coelho', 'Cobra', 'Elefante', 'Leão'],