24
This commit is contained in:
25
lib/navigation/views/top_bar.dart
Normal file
25
lib/navigation/views/top_bar.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../components/components.dart';
|
||||
|
||||
class AppTopBar extends StatelessWidget {
|
||||
const AppTopBar({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return DragToMoveWrap(
|
||||
child: const Row(
|
||||
children: [
|
||||
SizedBox(width: 20,),
|
||||
// Text(
|
||||
// '404 界面丢失',
|
||||
// style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
|
||||
// ),
|
||||
Spacer(),
|
||||
WindowButtons()
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
22
lib/navigation/views/top_logo.dart
Normal file
22
lib/navigation/views/top_logo.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TopLogo extends StatelessWidget {
|
||||
const TopLogo({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0,vertical: 8),
|
||||
child: Row(
|
||||
children: [
|
||||
FlutterLogo(),
|
||||
const SizedBox(width: 8,),
|
||||
Text(
|
||||
'Flutter Books',
|
||||
style: TextStyle(color: Colors.white,fontWeight: FontWeight.bold,fontSize: 16),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user