Search
 
SCRIPT & CODE EXAMPLE
 

DART

Shadow box around a button Flutter

Container(
            height: 60,
            decoration: BoxDecoration(
              gradient: LinearGradient(
                colors: [
                  Color.fromRGBO(255, 143, 158, 1),
                  Color.fromRGBO(255, 188, 143, 1),
                ],
                begin: Alignment.centerLeft,
                end: Alignment.centerRight,
              ),
              borderRadius: const BorderRadius.all(
                Radius.circular(25.0),
              ),
              boxShadow: [
                BoxShadow(
                  color: Colors.pink.withOpacity(0.2),
                  spreadRadius: 4,
                  blurRadius: 10,
                  offset: Offset(0, 3),
                )
              ]
            ),
            child: Center(
              child: GestureDetector(
                onTap: () {},
                child: Text(
                  'Create Account',
                  textAlign: TextAlign.left,
                  style: TextStyle(
                    fontFamily: "Netflix",
                    fontWeight: FontWeight.w600,
                    fontSize: 18,
                    letterSpacing: 0.0,
                    color: Colors.white,
                  ),
                ),
              ),
            ),
          ),
Comment

PREVIOUS NEXT
Code Example
Dart :: mainAxisAlignment vs crossAxisAlignment flutter 
Dart :: flutter widget for space 
Dart :: dart dictionary 
Dart :: dart exception 
Dart :: how to format a date in Dart 
Dart :: Flutter Popup Menu Button Example Tutorial 
Dart :: bottomsheet shape flutter 
Dart :: flutter datetime 
Dart :: online dart compiler 
Dart :: shape property of card in flutter 
Dart :: Flutter(Dart) Find String Length 
Dart :: flutter date input field 
Dart :: git revert to specific commit id and push 
Dart :: get initials from name flutter on text 
Dart :: flutter toast 
Dart :: get length of map flutter 
Dart :: initialroute flutter 
Dart :: remove item form list by index dart 
Dart :: how to get isoCode based on location in flutter 
Dart :: get HH:MM time in flutter 
Dart :: get in dart 
Dart :: contains in flutter 
Dart :: how to give width based on screen size flutter 
Dart :: flutter CustomPaint clip 
Dart :: flutter variables 
Dart :: flutter get child widget size 
Dart :: opendrawer without appbar 
Dart :: flutter button sound effects 
Dart :: how to check if val only spaces in dart 
Dart :: convert data type dart 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =