adaptive title
This commit is contained in:
@@ -258,7 +258,9 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
_animationController.reverse();
|
_animationController.reverse();
|
||||||
}
|
}
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(top: 42.0),
|
padding: EdgeInsets.only(
|
||||||
|
top: MediaQuery.of(context).size.width < 600 ? 60.0 : 78.0,
|
||||||
|
),
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 350),
|
duration: const Duration(milliseconds: 350),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
@@ -468,21 +470,27 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Builder(
|
||||||
|
builder: (context) {
|
||||||
|
final screenWidth = MediaQuery.of(context).size.width;
|
||||||
|
final fontSize = screenWidth < 600 ? 24.0 : 48.0;
|
||||||
|
return Text(
|
||||||
'b0esche.cloud',
|
'b0esche.cloud',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontFamily: 'PixelatedElegance',
|
fontFamily: 'PixelatedElegance',
|
||||||
fontSize: 48,
|
fontSize: fontSize,
|
||||||
color: AppTheme.primaryText,
|
color: AppTheme.primaryText,
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
decorationColor: AppTheme.primaryText,
|
decorationColor: AppTheme.primaryText,
|
||||||
fontFeatures: const [FontFeature.slashedZero()],
|
fontFeatures: const [FontFeature.slashedZero()],
|
||||||
),
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
top: 10,
|
top: MediaQuery.of(context).size.width < 600 ? 40 : 10,
|
||||||
right: 20,
|
right: 20,
|
||||||
child: BlocBuilder<AuthBloc, AuthState>(
|
child: BlocBuilder<AuthBloc, AuthState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
|
|||||||
Reference in New Issue
Block a user