Skip to content

Commit

Permalink
Merge pull request #6 from 54-xenon/newpage
Browse files Browse the repository at this point in the history
  • Loading branch information
54-xenon authored Aug 31, 2024
2 parents 94f8e70 + 3739487 commit d36f2a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 54 deletions.
32 changes: 2 additions & 30 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,12 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Narou Redar',
home: mainPage()
return MaterialApp(
home: HomeScreen(),
);
}
}

class mainPage extends StatelessWidget {
const mainPage({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Home'),
backgroundColor: Colors.blue,
),
body: const Center(
child: Text('なろう小説APIを使用したアプリです'),
),
floatingActionButton: FloatingActionButton(
child: Icon(Icons.search),
backgroundColor: Colors.blue,
onPressed: () {
// 画面推移(main.dartからHomePageに移動する)
Navigator.push(
context,
MaterialPageRoute(builder: (context) => HomeScreen()),
);
},
),
);
}
}

// ctl+fn+spaceで提案を表示\\\

23 changes: 0 additions & 23 deletions lib/screens/AlertDialogPage.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class _HomeScreenState extends State<HomeScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('小説を検索'),
title: const Text('検索'),
backgroundColor: Colors.blue,
),
body: Padding(
Expand Down

0 comments on commit d36f2a4

Please sign in to comment.