Update landing page

This commit is contained in:
vishnukvmd 2022-06-10 18:21:25 +05:30
parent fa529738cf
commit bd06140327
2 changed files with 22 additions and 2 deletions

View file

@ -102,6 +102,14 @@ extension CustomColorScheme on ColorScheme {
Color get backupEnabledBgColor => brightness == Brightness.light
? Color.fromRGBO(230, 230, 230, 0.95)
: Color.fromRGBO(10, 40, 40, 0.3);
Color get dotsIndicatorActiveColor => brightness == Brightness.light
? Colors.black.withOpacity(0.5)
: Colors.white.withOpacity(0.5);
Color get dotsIndicatorInactiveColor => brightness == Brightness.light
? Colors.black.withOpacity(0.12)
: Colors.white.withOpacity(0.12);
}
OutlinedButtonThemeData buildOutlinedButtonThemeData(

View file

@ -41,14 +41,26 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
),
),
Padding(
padding: EdgeInsets.all(24),
padding: EdgeInsets.all(28),
),
_getFeatureSlider(),
Padding(
padding: EdgeInsets.all(12),
),
DotsIndicator(
dotsCount: 3,
position: _featureIndex,
decorator: DotsDecorator(
activeColor: Theme.of(context).buttonColor,
activeColor:
Theme.of(context).colorScheme.dotsIndicatorActiveColor,
color: Theme.of(context).colorScheme.dotsIndicatorInactiveColor,
activeShape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(3)),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(3)),
size: Size(100, 5),
activeSize: Size(100, 5),
spacing: EdgeInsets.all(3),
),
),
Padding(