mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-24 07:43:28 +08:00
Show 'beta' banner on Desktop
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io' show Platform;
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
@ -65,8 +67,9 @@ class AppDrawerHeader extends StatelessWidget {
|
|||||||
return header;
|
return header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isDesktop = Platform.isLinux || Platform.isWindows || Platform.isMacOS;
|
||||||
return Banner(
|
return Banner(
|
||||||
message: tr('pro'),
|
message: isDesktop ? 'BETA' : tr('pro'),
|
||||||
location: BannerLocation.topStart,
|
location: BannerLocation.topStart,
|
||||||
color: Theme.of(context).accentColor,
|
color: Theme.of(context).accentColor,
|
||||||
child: header,
|
child: header,
|
||||||
|
Reference in New Issue
Block a user