mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
[compass_app] Don't expose Dimens subclasses (#2541)
Avoid exposing the subclasses as they shouldn't be instantiated again or overridden. Also consistently use fields and getters in the declarations.
This commit is contained in:
@@ -132,7 +132,7 @@ class _AppSearchBar extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: Dimens.of(context).paddingScreenVertical,
|
||||
bottom: Dimens.dimensMobile.paddingScreenVertical,
|
||||
bottom: Dimens.mobile.paddingScreenVertical,
|
||||
),
|
||||
child: AppSearchBar(
|
||||
config: widget.viewModel.config,
|
||||
|
||||
Reference in New Issue
Block a user