This file contains hidden or 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
| dependencies: | |
| flutter_shine: ^0.0.5 |
This file contains hidden or 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
| body: Center( | |
| child: Text('Text Shadows in Flutter', | |
| textAlign: TextAlign.center, | |
| style: TextStyle( | |
| shadows: [ | |
| Shadow( | |
| blurRadius: 10.0, | |
| color: Colors.blue, | |
| offset: Offset(5.0, 5.0), | |
| ), |
This file contains hidden or 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
| new Container( | |
| width: 100, | |
| height: 100, | |
| decoration: new BoxDecoration( | |
| boxShadow: [ | |
| BoxShadow( | |
| color: Colors.grey.withOpacity(.5), | |
| blurRadius: 20.0, // soften the shadow | |
| spreadRadius: 0.0, //extend the shadow | |
| offset: Offset( |
This file contains hidden or 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
| FlutterShine( | |
| builder: (BuildContext context, ShineShadow shineShadow) { | |
| return Center( | |
| child: | |
| Text( | |
| "Flutter Shine", | |
| style: TextStyle( | |
| fontSize: 100, | |
| color: Colors.white, | |
| shadows: shineShadow.shadows, |
This file contains hidden or 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
| FlutterShine( | |
| builder: (BuildContext context, ShineShadow shineShadow) { | |
| return Center( | |
| child: Container( | |
| width: 300, | |
| height: 300, | |
| decoration: BoxDecoration( | |
| color: Colors.white, boxShadow: shineShadow.boxShadows, | |
| ), | |
| ), |
This file contains hidden or 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
| class Home extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| leading: Column( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| crossAxisAlignment: CrossAxisAlignment.center, | |
| children: <Widget>[ | |
| Container( |
This file contains hidden or 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
| Column _buildLeadingColumn(BuildContext context) { | |
| return Column( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| crossAxisAlignment: CrossAxisAlignment.center, | |
| children: <Widget>[ | |
| Container( | |
| height: 40, | |
| width: 40, | |
| decoration: BoxDecoration( | |
| borderRadius: BorderRadius.circular(10), |
This file contains hidden or 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
| Widget _buildRow(BuildContext context) { | |
| return Row( | |
| crossAxisAlignment: CrossAxisAlignment.center, | |
| children: <Widget>[ | |
| Text( | |
| "Period", | |
| style: TextStyle( | |
| fontWeight: FontWeight.bold, | |
| color: Theme.of(context).textTheme.caption.color, | |
| ), |
This file contains hidden or 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
| final rowConstant = Row( | |
| crossAxisAlignment: CrossAxisAlignment.center, | |
| children: <Widget>[ | |
| Text( | |
| "Period", | |
| style: TextStyle( | |
| fontWeight: FontWeight.bold, | |
| color: Theme.of(context).textTheme.caption.color, | |
| ), | |
| ), |
This file contains hidden or 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
| class PaddingWidget extends StatelessWidget { | |
| const PaddingWidget({ | |
| Key key, | |
| }) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Padding( | |
| padding: EdgeInsets.symmetric(horizontal: 20), | |
| child: Row( |
OlderNewer