Open preetjdp opened 4 years ago
Is your feature request related to a problem? Please describe. The problem is to achieve a Text with an arrow in it it has to be wrapped in an Row every time. As follows https://github.com/preetjdp/YouOweMe/blob/5e662c8dea6f5f6f06a483c7ec9ed41ec36cd91c/mobileApp/lib/ui/HomePage/oweMe.dart#L15-L28
Describe the idea / solution you'd like The solution in my mind is to create an Abstracted Widget As follows.
class ArrowText extends StatelessWidget { final String text; //Callback Func //Style //Brightness //etc ArrowText({@required this.text}); @override Widget build(BuildContext context) { return Row( children: <Widget>[ Text( text, style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, color: Color.fromRGBO(78, 80, 88, 1)), ), Icon( Icons.keyboard_arrow_right, color: Color.fromRGBO(78, 80, 88, 1), ) ], ); } }
Additional context This is just to build upon the idea of better Abstractions and smaller Code
The Animated Swooshing Text is a very good reason to implement this
Is your feature request related to a problem? Please describe. The problem is to achieve a Text with an arrow in it it has to be wrapped in an Row every time. As follows https://github.com/preetjdp/YouOweMe/blob/5e662c8dea6f5f6f06a483c7ec9ed41ec36cd91c/mobileApp/lib/ui/HomePage/oweMe.dart#L15-L28
Describe the idea / solution you'd like The solution in my mind is to create an Abstracted Widget As follows.
Additional context This is just to build upon the idea of better Abstractions and smaller Code