Skip to content

Commit

Permalink
[*]Button offset & launcher appbar title
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Dec 18, 2023
1 parent 8d8ca01 commit 3360c39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ void main() {
class App extends StatelessWidget {
const App({super.key});

final title = "NyaLCF";
final title = "Nya LoCyanFrp!";

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
Get.put(UserController());
return GetMaterialApp(
title: 'NyaLCF',
title: 'Nya LoCyanFrp!',
routes: {
"/": (context) => Home(title: title),
"/login": (context) => Login(title: title),
Expand All @@ -43,8 +43,8 @@ class App extends StatelessWidget {
"/setting": (context) => SettingInjector(title: title),
},
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.pink),
useMaterial3: true,
fontFamily: 'HarmonyOS Sans'));
fontFamily: 'HarmonyOS Sans',
colorScheme: ColorScheme.fromSeed(seedColor: Colors.pink)));
}
}
5 changes: 4 additions & 1 deletion lib/ui/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ class Home extends StatelessWidget {
child: Column(
children: <Widget>[
const Text(
"欢迎使用NyaLCF",
"欢迎使用Nya LoCyanFrp! Launcher",
style: TextStyle(fontSize: 30),
),
const Text(
"にゃ~にゃ~,请选择一项操作"
),
Container(
margin: const EdgeInsets.all(20.0),
child: Row(
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/model/AppbarActions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AppbarActionsX {
WindowTitleBarBox(
child: MoveWindow(
child: Transform.translate(
offset: Offset(0, -4.5),
offset: Offset(0, -5.0),
child: IconButton(
onPressed: () => {},
icon: Icon(Icons.select_all),
Expand Down

0 comments on commit 3360c39

Please sign in to comment.