Skip to content

Instantly share code, notes, and snippets.

View yeasin50's full-sized avatar
☺️
Smile...It's Sunnah

Md. Yeasin Sheikh yeasin50

☺️
Smile...It's Sunnah
View GitHub Profile
@yeasin50
yeasin50 / main.dart
Created September 10, 2021 10:08
paint onClick
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 / cornerRectPaint.dart
Created September 15, 2021 09:31
CustomPainter corner As decoration
class CustomDecorationPainter extends CustomPainter {
final double padding;
final double frameSFactor;
CustomDecorationPainter({
required this.padding,
required this.frameSFactor,
});
@override
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'],