43 lines
1.0 KiB
Dart
43 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../store/store.dart';
|
|
|
|
class RolePages extends StatefulWidget {
|
|
const RolePages({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<RolePages> createState() => _RolePagesState();
|
|
}
|
|
|
|
class _RolePagesState extends State<RolePages> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('创建角色'),
|
|
shadowColor: Colors.transparent,
|
|
backgroundColor: Colors.white,
|
|
leading: const BackButton(
|
|
color: Colors.black,
|
|
),
|
|
titleTextStyle: const TextStyle(
|
|
color: Colors.black,
|
|
fontSize: 16.0,
|
|
),
|
|
),
|
|
body: Center(
|
|
child: ElevatedButton(
|
|
onPressed: () {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(builder: (context) {
|
|
return const StorePages();
|
|
}),
|
|
);
|
|
},
|
|
child: const Text('创建角色'),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|